generator

package
v0.0.0-...-183dbea Latest Latest
Warning

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

Go to latest
Published: Apr 29, 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 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

func NewFlat(biome world.Biome, layers []world.Block) Flat

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 (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