block

package
v0.0.0-...-54241fc Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcaciaLog

type AcaciaLog struct {
	Stripped bool
	Axis     Axis
}

func (AcaciaLog) BreakInfo

func (AcaciaLog) BreakInfo() BreakInfo

func (AcaciaLog) EncodedName

func (d AcaciaLog) EncodedName() string

func (AcaciaLog) New

func (AcaciaLog) New(n string, p map[string]string) chunk.Block

func (AcaciaLog) Properties

func (g AcaciaLog) Properties() map[string]string

type Air

type Air struct{}

func (Air) EncodedName

func (Air) EncodedName() string

func (Air) New

func (a Air) New(string, map[string]string) chunk.Block

func (Air) Properties

func (Air) Properties() map[string]string

type Axis

type Axis = string
const (
	AxisX Axis = "x"
	AxisY Axis = "y"
	AxisZ Axis = "z"
)

type Bedrock

type Bedrock struct{}

func (Bedrock) BreakInfo

func (d Bedrock) BreakInfo() BreakInfo

func (Bedrock) EncodedName

func (d Bedrock) EncodedName() string

func (Bedrock) New

func (d Bedrock) New(string, map[string]string) chunk.Block

func (Bedrock) Properties

func (g Bedrock) Properties() map[string]string

type BirchLog

type BirchLog struct {
	Stripped bool
	Axis     Axis
}

func (BirchLog) BreakInfo

func (BirchLog) BreakInfo() BreakInfo

func (BirchLog) EncodedName

func (d BirchLog) EncodedName() string

func (BirchLog) New

func (BirchLog) New(n string, p map[string]string) chunk.Block

func (BirchLog) Properties

func (g BirchLog) Properties() map[string]string

type BreakInfo

type BreakInfo struct {
	Hardness    float64
	Unbreakable bool
}

type Breakable

type Breakable interface {
	chunk.Block
	BreakInfo() BreakInfo
}

type CherryLog

type CherryLog struct {
	Stripped bool
	Axis     Axis
}

func (CherryLog) BreakInfo

func (CherryLog) BreakInfo() BreakInfo

func (CherryLog) EncodedName

func (d CherryLog) EncodedName() string

func (CherryLog) New

func (CherryLog) New(n string, p map[string]string) chunk.Block

func (CherryLog) Properties

func (g CherryLog) Properties() map[string]string

type DarkOakLog

type DarkOakLog struct {
	Stripped bool
	Axis     Axis
}

func (DarkOakLog) BreakInfo

func (DarkOakLog) BreakInfo() BreakInfo

func (DarkOakLog) EncodedName

func (d DarkOakLog) EncodedName() string

func (DarkOakLog) New

func (DarkOakLog) New(n string, p map[string]string) chunk.Block

func (DarkOakLog) Properties

func (g DarkOakLog) Properties() map[string]string

type Dirt

type Dirt struct {
	Coarse bool
}

func (Dirt) EncodedName

func (d Dirt) EncodedName() string

func (Dirt) New

func (d Dirt) New(string, map[string]string) chunk.Block

func (Dirt) Properties

func (g Dirt) Properties() map[string]string

type GrassBlock

type GrassBlock struct {
	Snowy bool
}

func (GrassBlock) EncodedName

func (GrassBlock) EncodedName() string

func (GrassBlock) New

func (GrassBlock) New(_ string, p map[string]string) chunk.Block

func (GrassBlock) Properties

func (g GrassBlock) Properties() map[string]string

func (GrassBlock) Tick1

type OakLog

type OakLog struct {
	Stripped bool
	Axis     Axis
}

func (OakLog) BreakInfo

func (OakLog) BreakInfo() BreakInfo

func (OakLog) EncodedName

func (d OakLog) EncodedName() string

func (OakLog) New

func (OakLog) New(n string, p map[string]string) chunk.Block

func (OakLog) Properties

func (g OakLog) Properties() map[string]string

type RandomTicker

type RandomTicker interface {
	chunk.Block
	RandomTick(pos.BlockPosition, *world.Dimension, uint) chunk.Block
}

type Snow

type Snow struct {
	Layers int
}

func (Snow) EncodedName

func (Snow) EncodedName() string

func (Snow) New

func (Snow) New(_ string, m map[string]string) chunk.Block

func (Snow) Properties

func (s Snow) Properties() map[string]string

type SpruceLog

type SpruceLog struct {
	Stripped bool
	Axis     Axis
}

func (SpruceLog) BreakInfo

func (SpruceLog) BreakInfo() BreakInfo

func (SpruceLog) EncodedName

func (d SpruceLog) EncodedName() string

func (SpruceLog) New

func (SpruceLog) New(n string, p map[string]string) chunk.Block

func (SpruceLog) Properties

func (g SpruceLog) Properties() map[string]string

type Ticker

type Ticker interface {
	chunk.Block
	Tick(pos.BlockPosition, *world.Dimension, uint) chunk.Block
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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