world

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk interface {
	GetX() int32
	GetZ() int32

	SetBlock(x int32, y int32, z int32, blockType block.Block, data uint16)
	SetAll(blockType block.Block, start int, end, data uint16)
	GetSections() [16]*ChunkSection
}

type ChunkSection

type ChunkSection struct {
	Blocks       [4096]uint16
	BlocksPlaced int16
}

func (*ChunkSection) GetBlocksPlaced

func (c *ChunkSection) GetBlocksPlaced() int16

Jump to

Keyboard shortcuts

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