biome

package
v0.0.0-...-0a6df55 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Noise will be used to generate noise

Functions

func Generate

func Generate(chunk *chunk.Chunk, pos world.ChunkPos)

Generate Will find the correct biome, and use that to generate the chunk.

func RegisterBiomes

func RegisterBiomes(seed int64)

RegisterBiomes Is used to register all the biomes.

Types

type Biome

type Biome interface {
	// IsPosInBiome Returns whether the given chunk
	// pos is in this biome
	IsPosInBiome(pos world.ChunkPos) bool
	// GenChunk Is the function that generates the chunk
	// for this specific biome.
	GenChunk(chunk *chunk.Chunk, pos world.ChunkPos)
}

Jump to

Keyboard shortcuts

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