blockinternal

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Components

func Components(identifier string, b world.CustomBlock, blockID int32) map[string]any

Types

type ComponentBuilder

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

func NewComponentBuilder

func NewComponentBuilder(identifier string, components map[string]any, blockID int32) *ComponentBuilder

func (*ComponentBuilder) AddComponent

func (builder *ComponentBuilder) AddComponent(name string, value any)

func (*ComponentBuilder) AddPermutation

func (builder *ComponentBuilder) AddPermutation(condition string, components map[string]any)

func (*ComponentBuilder) AddProperty

func (builder *ComponentBuilder) AddProperty(name string, values []any)

func (*ComponentBuilder) Construct

func (builder *ComponentBuilder) Construct() map[string]any

func (*ComponentBuilder) SetMenuCategory

func (builder *ComponentBuilder) SetMenuCategory(category category.Category)

Jump to

Keyboard shortcuts

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