customblock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Material

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

func NewMaterial

func NewMaterial(texture string, method Method) Material

func (Material) Encode

func (m Material) Encode() map[string]any

func (Material) WithAmbientOcclusion

func (m Material) WithAmbientOcclusion() Material

func (Material) WithFaceDimming

func (m Material) WithFaceDimming() Material

func (Material) WithoutAmbientOcclusion

func (m Material) WithoutAmbientOcclusion() Material

func (Material) WithoutFaceDimming

func (m Material) WithoutFaceDimming() Material

type Method

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

func AlphaTestRenderMethod

func AlphaTestRenderMethod() Method

func BlendRenderMethod

func BlendRenderMethod() Method

func DoubleSidedRenderMethod

func DoubleSidedRenderMethod() Method

func OpaqueRenderMethod

func OpaqueRenderMethod() Method

func (Method) AmbientOcclusion

func (m Method) AmbientOcclusion() bool

func (Method) String

func (m Method) String() string

func (Method) Uint8

func (m Method) Uint8() uint8

type Permutation

type Permutation struct {
	Properties

	Condition string
}

type Properties

type Properties struct {
	CollisionBox cube.BBox

	Cube bool

	Geometry string

	MapColour string

	Rotation cube.Pos

	Scale mgl64.Vec3

	SelectionBox cube.BBox

	Textures map[string]Material

	Translation mgl64.Vec3
}

Jump to

Keyboard shortcuts

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