grass

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grass

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

Grass represents a grass plant, which can be placed on top of grass blocks.

func All

func All() []Grass

All returns all variants of grass.

func Fern

func Fern() Grass

Fern returns the fern variant of grass.

func LargeFern

func LargeFern() Grass

LargeFern returns the large fern variant of grass.

func NetherSprouts

func NetherSprouts() Grass

NetherSprouts returns the nether sprouts variant of grass.

func SmallGrass

func SmallGrass() Grass

SmallGrass returns the small grass variant of grass.

func TallGrass

func TallGrass() Grass

TallGrass returns the tall grass variant of grass.

func (Grass) FromString

func (g Grass) FromString(s string) (interface{}, error)

FromString ...

func (Grass) Name

func (g Grass) Name() string

Name returns the grass's display name.

func (Grass) String

func (g Grass) String() string

String ...

func (Grass) Uint8

func (g Grass) Uint8() uint8

Uint8 converts the grass to an integer that uniquely identifies it's type.

Jump to

Keyboard shortcuts

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