Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flat ¶
type Flat struct {
// contains filtered or unexported fields
}
Flat is the flat generator of World. It generates flat worlds (like those in vanilla) with no other decoration. It may be constructed by calling NewFlat.
func NewFlat ¶ added in v0.6.0
NewFlat creates a new Flat generator. Chunks generated are completely filled with the world.Biome passed. layers is a list of block layers placed by the Flat generator. The layers are ordered in a way where the last element in the slice is placed as the bottom-most block of the chunk.
func NewFlatWithRegistry ¶ added in v0.10.14
NewFlatWithRegistry creates a new Flat generator using the block registry passed to resolve layers to runtime IDs. Use this constructor when the generator is used in a World with a non-default block registry.
func (Flat) DefaultSpawn ¶ added in v0.10.14
DefaultSpawn ...