io

package
v0.0.0-...-b9cfb1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2019 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

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 (*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 (*InventoryActionIOList) WriteToBuffer

func (IOList *InventoryActionIOList) WriteToBuffer(bs *packets.MinecraftStream)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL