Documentation
¶
Index ¶
- func DataSlotToNetworkSlot(index int8) int16
- func NetworkSlotToDataSlot(index int16) int8
- type Inventory
- func (inv *Inventory) Clear()
- func (inv *Inventory) Collect(slot int8)
- func (inv *Inventory) Data() (i []packet.Slot)
- func (inv *Inventory) DeleteSlot(i int8)
- func (inv *Inventory) Export() []item.Item
- func (inv *Inventory) HeldItem() (item.Item, bool)
- func (inv *Inventory) Merge(slot int8)
- func (inv *Inventory) SetCarriedItem(slot int8)
- func (inv *Inventory) SetCount(s int8, count int8)
- func (inv *Inventory) SetSlot(s int8, i item.Item)
- func (inv *Inventory) Slot(i int8) (item.Item, bool)
- func (inv *Inventory) Split(slot int8)
- func (inv *Inventory) Swap(slot int8, slot1 int8)
- func (inv *Inventory) UncarryItem(slot int8)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSlotToNetworkSlot ¶
func NetworkSlotToDataSlot ¶
Types ¶
type Inventory ¶
type Inventory struct { SelectedSlot atomic.Value[int32] // contains filtered or unexported fields }
func (*Inventory) DeleteSlot ¶
func (*Inventory) SetCarriedItem ¶
func (*Inventory) UncarryItem ¶
Click to show internal directories.
Click to hide internal directories.