Documentation ¶
Index ¶
- Constants
- type InventoryActionIO
- type InventoryActionIOList
- func (IOList *InventoryActionIOList) GetCount() int
- func (IOList *InventoryActionIOList) PutAction(io InventoryActionIO)
- func (IOList *InventoryActionIOList) ReadFromBuffer(bs *packets.MinecraftStream) *InventoryActionIOList
- func (IOList *InventoryActionIOList) WriteToBuffer(bs *packets.MinecraftStream)
Constants ¶
View Source
const ( ContainerSource = iota + 0 WorldSource = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InventoryActionIO ¶
type InventoryActionIO struct { Source uint32 WindowId int32 SourceFlags uint32 InventorySlot uint32 OldItem *items.Stack NewItem *items.Stack }
func NewInventoryActionIO ¶
func NewInventoryActionIO() InventoryActionIO
func (*InventoryActionIO) ReadFromBuffer ¶
func (IO *InventoryActionIO) ReadFromBuffer(bs *packets.MinecraftStream) InventoryActionIO
func (*InventoryActionIO) WriteToBuffer ¶
func (IO *InventoryActionIO) WriteToBuffer(bs *packets.MinecraftStream)
type InventoryActionIOList ¶
type InventoryActionIOList struct {
List []InventoryActionIO
}
func NewInventoryActionIOList ¶
func NewInventoryActionIOList() *InventoryActionIOList
func (*InventoryActionIOList) GetCount ¶
func (IOList *InventoryActionIOList) GetCount() int
func (*InventoryActionIOList) PutAction ¶
func (IOList *InventoryActionIOList) PutAction(io InventoryActionIO)
func (*InventoryActionIOList) ReadFromBuffer ¶
func (IOList *InventoryActionIOList) ReadFromBuffer(bs *packets.MinecraftStream) *InventoryActionIOList
func (*InventoryActionIOList) WriteToBuffer ¶
func (IOList *InventoryActionIOList) WriteToBuffer(bs *packets.MinecraftStream)
Click to show internal directories.
Click to hide internal directories.