Documentation
¶
Index ¶
- type Container
- func (c Container) Encode() []slot.Slot
- func (c Container) EncodeResize(size int) []slot.Slot
- func (c *Container) Merge(slot item.DataSlot, carriedItem *item.Item)
- func (c *Container) Set(item item.Item)
- func (c *Container) SetAt(item item.Item, slot item.DataSlot)
- func (c Container) Slot(slot item.DataSlot) (item.Item, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
A container that holds items
func (Container) EncodeResize ¶
NetworkConvert encodes the container with the specified size and changes the slot from data slots to network slots. This should be used for inventories
func (*Container) Set ¶
Set adds the item to the container and replaces the existing one if found, and returns if the operation was successful
Click to show internal directories.
Click to hide internal directories.