Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearItems ¶
func ClearItems()
func RegisterItem ¶
func RegisterItem(item Item)
Types ¶
type InventoryWindow ¶
type Item ¶
type Item interface { Name() string OnClick(w block.World, p Player, pos block.Pos, face block.Face) }
func GetItemFromID ¶
type PlayerInventory ¶
type PlayerInventory interface { HeldItem() *Stack SetHeldItem(stack *Stack) SetHeldItemSlot(slot uint16) SetItem(index uint16, item *Stack) SetHotbarItem(index uint16, item *Stack) Equipment() map[int]*Stack NeedsEquipmentChange() bool ClearEquipmentChange() OpenWindow(id byte, title *util.Chat) InventoryWindow }
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func NewItemFromProto ¶
func (*Stack) AttackDamage ¶
func (*Stack) AttackSpeed ¶
Click to show internal directories.
Click to hide internal directories.