behaviourpack

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: GPL-3.0 Imports: 10 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) 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) HasItems added in v1.27.0

func (bp *BehaviourPack) HasItems() bool

func (*BehaviourPack) Save

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

type EntityIn added in v1.27.0

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

Jump to

Keyboard shortcuts

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