Documentation
¶
Index ¶
- type PlayerInventory
- func (inv *PlayerInventory) AddItem(item slot.SlotItem)
- func (inv *PlayerInventory) GetArmorPackets(eid int32) []protocol.PacketOut
- func (inv *PlayerInventory) GetDirectSlot(slotIndex int) slot.SlotItem
- func (inv *PlayerInventory) GetHeldItem() slot.SlotItem
- func (inv *PlayerInventory) HasItem(material material.Material) bool
- func (inv PlayerInventory) ID() uint8
- func (inv PlayerInventory) Packets() []protocol.PacketOut
- func (inv *PlayerInventory) SetArmor(slot types.PlayerInventoryArmor, slotData slot.SlotItem)
- func (inv *PlayerInventory) SetCrafting(slot int, slotData slot.SlotItem)
- func (inv *PlayerInventory) SetDirectSlot(slot int, slotData slot.SlotItem)
- func (inv *PlayerInventory) SetHeldItemSlot(slot uint8)
- func (inv *PlayerInventory) SetHotbar(slot int, slotData slot.SlotItem)
- func (inv *PlayerInventory) SetSlot(slot int, slotData slot.SlotItem)
- func (inv PlayerInventory) Size() uint16
- func (inv PlayerInventory) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayerInventory ¶
type PlayerInventory struct { HeldSlot uint8 // contains filtered or unexported fields }
func NewPlayerInventory ¶
func NewPlayerInventory() *PlayerInventory
func (*PlayerInventory) AddItem ¶
func (inv *PlayerInventory) AddItem(item slot.SlotItem)
func (*PlayerInventory) GetArmorPackets ¶
func (inv *PlayerInventory) GetArmorPackets(eid int32) []protocol.PacketOut
func (*PlayerInventory) GetDirectSlot ¶
func (inv *PlayerInventory) GetDirectSlot(slotIndex int) slot.SlotItem
func (*PlayerInventory) GetHeldItem ¶
func (inv *PlayerInventory) GetHeldItem() slot.SlotItem
func (*PlayerInventory) HasItem ¶
func (inv *PlayerInventory) HasItem(material material.Material) bool
func (PlayerInventory) ID ¶
func (inv PlayerInventory) ID() uint8
func (PlayerInventory) Packets ¶
func (inv PlayerInventory) Packets() []protocol.PacketOut
func (*PlayerInventory) SetArmor ¶
func (inv *PlayerInventory) SetArmor(slot types.PlayerInventoryArmor, slotData slot.SlotItem)
func (*PlayerInventory) SetCrafting ¶
func (inv *PlayerInventory) SetCrafting(slot int, slotData slot.SlotItem)
func (*PlayerInventory) SetDirectSlot ¶
func (inv *PlayerInventory) SetDirectSlot(slot int, slotData slot.SlotItem)
func (*PlayerInventory) SetHeldItemSlot ¶
func (inv *PlayerInventory) SetHeldItemSlot(slot uint8)
func (*PlayerInventory) SetHotbar ¶
func (inv *PlayerInventory) SetHotbar(slot int, slotData slot.SlotItem)
func (*PlayerInventory) SetSlot ¶
func (inv *PlayerInventory) SetSlot(slot int, slotData slot.SlotItem)
func (PlayerInventory) Size ¶
func (inv PlayerInventory) Size() uint16
func (PlayerInventory) Title ¶
func (inv PlayerInventory) Title() string
Click to show internal directories.
Click to hide internal directories.