Versions in this module Expand all Collapse all v1 v1.20.2 Aug 8, 2023 Changes in this version + type ChangedSlots map[int]*Slot + func (c ChangedSlots) WriteTo(w io.Writer) (n int64, err error) + type Container interface + type Error struct + Err error + func (e Error) Error() string + func (e Error) Unwrap() error + type EventsListener struct + Close func(id int) error + Open func(id int) error + SetSlot func(id, index int) error + type Inventory struct + Slots [46]Slot + func (inv *Inventory) Armor() []Slot + func (inv *Inventory) CraftingInput() []Slot + func (inv *Inventory) CraftingOutput() *Slot + func (inv *Inventory) Hotbar() []Slot + func (inv *Inventory) Main() []Slot + func (inv *Inventory) Offhand() *Slot + type Manager struct + Cursor Slot + Inventory Inventory + Screens map[int]Container + func NewManager(c *bot.Client, e EventsListener) *Manager + func (m *Manager) ContainerClick(id int, slot int16, button byte, mode int32, slots ChangedSlots, carried *Slot) error + type Slot struct + Count pk.Byte + ID pk.VarInt + NBT nbt.RawMessage + func (s *Slot) ReadFrom(r io.Reader) (n int64, err error) + func (s *Slot) WriteTo(w io.Writer) (n int64, err error)