act

package
v0.0.0-...-b9fcd7a Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 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 Fill

type Fill struct {
	// contains filtered or unexported fields
}

Fill is an action which fills the entire selection with one or more blocks.

func (Fill) At

func (f Fill) At(_ int, _ int, _ int, r *rand.Rand, _ *world.World, _ func(x, y, z int) world.Block) (world.Block, world.Liquid)

At always returns a random block set in the action.

func (Fill) Form

func (f Fill) Form(shape brush.Shape) form.Form

Form ...

type Replace

type Replace struct {
	// contains filtered or unexported fields
}

Replace is an action that replaces set blocks in the selection with other blocks.

func (Replace) At

func (r Replace) At(x int, y int, z int, ra *rand.Rand, _ *world.World, at func(x, y, z int) world.Block) (world.Block, world.Liquid)

At always returns a random block set in the action if the block at the given x, y and z is in the old slice.

func (Replace) Form

func (r Replace) Form(shape brush.Shape) form.Form

Form ...

Jump to

Keyboard shortcuts

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