populate

package
v0.0.0-...-e8ab348 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BirchTree

type BirchTree struct {
	Super bool
}

func (BirchTree) Grow

func (b BirchTree) Grow(w *world.World, pos cube.Pos, r *rand.Random)

type OakTree

type OakTree struct{}

func (OakTree) Grow

func (o OakTree) Grow(w *world.World, pos cube.Pos, r *rand.Random)

type Ore

type Ore struct {
	Types []OreType
}

func (Ore) Populate

func (o Ore) Populate(w *world.World, pos world.ChunkPos, chunk *chunk.Chunk, r *rand.Random)

type OreType

type OreType struct {
	Material, Replaces        world.Block
	ClusterCount, ClusterSize int
	MinHeight, MaxHeight      int
}

func (OreType) Place

func (o OreType) Place(w *world.World, pos cube.Pos, r *rand.Random)

type Populator

type Populator interface {
	Populate(w *world.World, pos world.ChunkPos, chunk *chunk.Chunk, r *rand.Random)
}

type SpruceTree

type SpruceTree struct{}

func (SpruceTree) Grow

func (SpruceTree) Grow(w *world.World, pos cube.Pos, r *rand.Random)

type TallGrass

type TallGrass struct {
	Amount int
}

func (TallGrass) Populate

func (t TallGrass) Populate(w *world.World, pos world.ChunkPos, chunk *chunk.Chunk, r *rand.Random)

type Tree

type Tree struct {
	BaseAmount int
	Type       TreeType
}

func (Tree) Populate

func (t Tree) Populate(w *world.World, pos world.ChunkPos, chunk *chunk.Chunk, r *rand.Random)

type TreeType

type TreeType interface {
	Grow(w *world.World, pos cube.Pos, r *rand.Random)
}

Jump to

Keyboard shortcuts

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