Documentation ¶
Index ¶
- Variables
- func Nibble(arr []byte, i int) byte
- func WriteChunkToRegion(in chan Chunk, out chan CTROut, i int)
- func WriteNibble(arr []byte, i int, b byte)
- type Block
- type CTROut
- type Chunk
- type Entity
- type Location
- type Point
- type Points
- type Section
- type TileEntity
- type TileTick
- type World
- func (w *World) Biome(xz XZ) (byte, error)
- func (w World) Block(pt Point) (*Block, error)
- func (w *World) BlockLight(pt Point) (byte, error)
- func (w World) Chunk(pt Point) (*Chunk, error)
- func (w *World) HeightMap(xz XZ) (int32, error)
- func (w *World) MakeChunk(xz XZ, tag nbt.Tag) (*Chunk, error)
- func (w World) Section(pt Point) (*Section, error)
- func (w *World) SetBiome(xz XZ, b byte) error
- func (w *World) SetBlock(pt Point, b Block) error
- func (w *World) SetBlockLight(pt Point, b byte) error
- func (w *World) SetHeightMap(xz XZ, i int32) error
- func (w *World) SetRandomSeed(seed int64)
- func (w *World) SetSaveDir(dir string) error
- func (w *World) SetSkyLight(pt Point, b byte) error
- func (w *World) SetSpawn(p Point)
- func (w *World) SkyLight(pt Point) (byte, error)
- func (w World) String() string
- func (w World) Write() error
- type XZ
Constants ¶
This section is empty.
Variables ¶
View Source
var Biome = map[string]int{
"Ocean": 0,
"Plains": 1,
"Desert": 2,
"Extreme Hills": 3,
"Forest": 4,
"Taiga": 5,
"Swampland": 6,
"River": 7,
"Nether": 8,
"End": 9,
"Frozen Ocean": 10,
"Frozen River": 11,
"Ice Plains": 12,
"Ice Mountains": 13,
"Mushroom Island": 14,
"Mushroom Island Shore": 15,
"Beach": 16,
"Desert Hills": 17,
"Forest Hills": 18,
"Taiga Hills": 19,
"Extreme Hills Edge": 20,
"Jungle": 21,
"Jungle Hills": 22,
"Jungle Edge": 23,
"Deep Ocean": 24,
"Stone Beach": 25,
"Cold Beach": 26,
"Birch Forest": 27,
"Birch Forest Hills": 28,
"Roofed Forest": 29,
"Cold Taiga": 30,
"Cold Taiga Hills": 31,
"Mega Taiga": 32,
"Mega Taiga Hills": 33,
"Extreme Hills+": 34,
"Savanna": 35,
"Savanna Plateau": 36,
"Mesa": 37,
"Mesa Plateau F": 38,
"Mesa Plateau": 39,
"Sunflower Plains": 129,
"Desert M": 130,
"Extreme Hills M": 131,
"Flower Forest": 132,
"Taiga M": 133,
"Swampland M": 134,
"Ice Plains Spikes": 140,
"Jungle M": 149,
"JungleEdge M": 151,
"Birch Forest M": 155,
"Birch Forest Hills M": 156,
"Roofed Forest M": 157,
"Cold Taiga M": 158,
"Mega Spruce Taiga": 160,
"Mega Spruce Taiga Hills": 161,
"Extreme Hills+ M": 162,
"Savanna M": 163,
"Savanna Plateau M": 164,
"Mesa (Bryce)": 165,
"Mesa Plateau F M": 166,
"Mesa Plateau M": 167,
"(Uncalculated)": -1,
}
View Source
var Debug = false
Functions ¶
func WriteChunkToRegion ¶
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func MakeEntity ¶
func MakeEntity() Entity
func ReadEntity ¶
type Section ¶
func MakeSection ¶
func MakeSection() Section
type TileEntity ¶
type TileEntity struct {
// contains filtered or unexported fields
}
func MakeTileEntity ¶
func MakeTileEntity() TileEntity
func ReadTileEntity ¶
func ReadTileEntity(tags []nbt.Tag) TileEntity
func (TileEntity) String ¶
func (e TileEntity) String() string
type TileTick ¶
type TileTick struct {
// contains filtered or unexported fields
}
TileTick is a TAG_Compound TileTicks TAG_List of TAG_Compound (unless none exist, in which case no tag is sent)
func MakeTileTick ¶
func MakeTileTick() TileTick
func ReadTileTick ¶
Click to show internal directories.
Click to hide internal directories.