behaviourpack

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BehaviourPack

type BehaviourPack struct {
	Manifest *resource.Manifest
	// contains filtered or unexported fields
}

func New

func New(name string) *BehaviourPack

func (*BehaviourPack) AddBiomes added in v1.31.1

func (b *BehaviourPack) AddBiomes(biomesMap map[string]any)

func (*BehaviourPack) AddBlock

func (bp *BehaviourPack) AddBlock(block protocol.BlockEntry)

func (*BehaviourPack) AddDependency

func (bp *BehaviourPack) AddDependency(id string, ver [3]int)

func (*BehaviourPack) AddEntity added in v1.27.0

func (bp *BehaviourPack) AddEntity(entity EntityIn)

func (*BehaviourPack) AddItem

func (bp *BehaviourPack) AddItem(item protocol.ItemEntry)

func (*BehaviourPack) ApplyComponentEntries

func (bp *BehaviourPack) ApplyComponentEntries(entries []protocol.ItemComponentEntry)
func (bp *BehaviourPack) CheckAddLink(pack utils.Pack)

func (*BehaviourPack) HasBlocks added in v1.27.0

func (bp *BehaviourPack) HasBlocks() bool

func (*BehaviourPack) HasContent

func (bp *BehaviourPack) HasContent() bool

func (*BehaviourPack) HasEntities added in v1.28.1

func (bp *BehaviourPack) HasEntities() bool

func (*BehaviourPack) HasItems added in v1.27.0

func (bp *BehaviourPack) HasItems() bool

func (*BehaviourPack) Save

func (bp *BehaviourPack) Save(fpath string) error

type EntityDescription added in v1.28.0

type EntityDescription struct {
	Identifier   string `json:"identifier"`
	Spawnable    bool   `json:"is_spawnable"`
	Summonable   bool   `json:"is_summonable"`
	Experimental bool   `json:"is_experimental"`
}

type EntityIn added in v1.27.0

type EntityIn struct {
	Identifier string
	Attr       []protocol.AttributeValue
	Meta       protocol.EntityMetadata
}

type MinecraftBiome added in v1.31.1

type MinecraftBiome struct {
	Description biomeDescription `json:"description"`
}

type MinecraftBlock added in v1.31.1

type MinecraftBlock struct {
	Description  description    `json:"description"`
	Components   map[string]any `json:"components,omitempty"`
	Permutations []permutation  `json:"permutations,omitempty"`
}

type MinecraftEntity added in v1.28.0

type MinecraftEntity struct {
	Description     EntityDescription `json:"description"`
	ComponentGroups map[string]any    `json:"component_groups"`
	Components      map[string]any    `json:"components"`
	Events          map[string]any    `json:"events,omitempty"`
}

Jump to

Keyboard shortcuts

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