generator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flat

type Flat struct {
	// Biome is the biome that the generator should use.
	Biome world.Biome
	// 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.
	Layers []world.Block
}

Flat is the flat generator of World. It generates flat worlds (like those in vanilla) with no other decoration. The Layers field may be used to specify the block layers placed.

func (Flat) GenerateChunk

func (f Flat) GenerateChunk(_ world.ChunkPos, chunk *chunk.Chunk)

GenerateChunk ...

Jump to

Keyboard shortcuts

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