Documentation
¶
Index ¶
- func Components(identifier string, b world.CustomBlock, blockID int32) map[string]any
- type ComponentBuilder
- func (builder *ComponentBuilder) AddComponent(name string, value any)
- func (builder *ComponentBuilder) AddPermutation(condition string, components map[string]any)
- func (builder *ComponentBuilder) AddProperty(name string, values []any)
- func (builder *ComponentBuilder) Construct() map[string]any
- func (builder *ComponentBuilder) SetMenuCategory(category category.Category)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Components ¶
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)
Click to show internal directories.
Click to hide internal directories.