chunks

package
v0.0.0-...-771882a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	X int32
	Z int32

	Sections [16]*api_chunk.ChunkSection
}

func (*Chunk) GetSections

func (c *Chunk) GetSections() [16]*api_chunk.ChunkSection

func (*Chunk) GetX

func (c *Chunk) GetX() int32

func (*Chunk) GetZ

func (c *Chunk) GetZ() int32

func (*Chunk) SetAll

func (c *Chunk) SetAll(blockType block.Block, start int, end uint16, data uint16)

func (*Chunk) SetBlock

func (c *Chunk) SetBlock(x int32, y int32, z int32, blockType block.Block, data uint16)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL