gen

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
}

Generator Is the generator struct that will be used to generate.

func NewGenerator

func NewGenerator(seed int64) *Generator

NewGenerator Returns a pointer to the generator struct. This can be changed by setting conf.Generator.

func (Generator) GenerateChunk

func (g Generator) GenerateChunk(pos world.ChunkPos, chunk *chunk.Chunk)

GenerateChunk Finds the correct biome for the chunk, and generates the chunk accordingly.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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