Documentation ¶
Index ¶
- func StackReqSlotInfo(r protocol.IO, x *protocol.StackRequestSlotInfo)
- type Attribute
- type AutoCraftRecipeStackRequestAction
- type ConsumeStackRequestAction
- type DefaultItemDescriptor
- type DestroyStackRequestAction
- type DropStackRequestAction
- type ItemStackRequest
- type PlaceInContainerStackRequestAction
- type PlaceStackRequestAction
- type PlayerListEntry
- type Skin
- type StructureSettings
- type SwapStackRequestAction
- type TakeOutContainerStackRequestAction
- type TakeStackRequestAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StackReqSlotInfo ¶
func StackReqSlotInfo(r protocol.IO, x *protocol.StackRequestSlotInfo)
Types ¶
type Attribute ¶
Attribute is an entity attribute, that holds specific data such as the health of the entity. Each attribute holds a default value, maximum and minimum value, name and its current value.
type AutoCraftRecipeStackRequestAction ¶
type AutoCraftRecipeStackRequestAction struct {
protocol.AutoCraftRecipeStackRequestAction
}
func (*AutoCraftRecipeStackRequestAction) Marshal ¶
func (a *AutoCraftRecipeStackRequestAction) Marshal(r protocol.IO)
type ConsumeStackRequestAction ¶
type ConsumeStackRequestAction struct {
protocol.DestroyStackRequestAction
}
type DefaultItemDescriptor ¶
type DefaultItemDescriptor struct { // NetworkID is the numerical network ID of the item. This is sometimes a positive ID, and sometimes a // negative ID, depending on what item it concerns. NetworkID int32 // MetadataValue is the metadata value of the item. For some items, this is the damage value, whereas for // other items it is simply an identifier of a variant of the item. MetadataValue int32 }
DefaultItemDescriptor represents an item descriptor for regular items. This is used for the significant majority of items.
func (*DefaultItemDescriptor) Marshal ¶
func (x *DefaultItemDescriptor) Marshal(r protocol.IO)
Marshal ...
type DestroyStackRequestAction ¶
type DestroyStackRequestAction struct {
protocol.DestroyStackRequestAction
}
func (*DestroyStackRequestAction) Marshal ¶
func (a *DestroyStackRequestAction) Marshal(r protocol.IO)
type DropStackRequestAction ¶
type DropStackRequestAction struct {
protocol.DropStackRequestAction
}
func (*DropStackRequestAction) Marshal ¶
func (a *DropStackRequestAction) Marshal(r protocol.IO)
type ItemStackRequest ¶
type ItemStackRequest struct {
protocol.ItemStackRequest
}
ItemStackRequest represents a single request present in an ItemStackRequest packet sent by the client to change an item in an inventory. Item stack requests are either approved or rejected by the server using the ItemStackResponse packet.
func (*ItemStackRequest) Marshal ¶
func (x *ItemStackRequest) Marshal(r protocol.IO)
Marshal encodes/decodes an ItemStackRequest.
type PlaceInContainerStackRequestAction ¶
type PlaceInContainerStackRequestAction struct {
protocol.PlaceInContainerStackRequestAction
}
func (*PlaceInContainerStackRequestAction) Marshal ¶
func (a *PlaceInContainerStackRequestAction) Marshal(r protocol.IO)
type PlaceStackRequestAction ¶
type PlaceStackRequestAction struct {
protocol.PlaceStackRequestAction
}
func (*PlaceStackRequestAction) Marshal ¶
func (a *PlaceStackRequestAction) Marshal(r protocol.IO)
type PlayerListEntry ¶
type PlayerListEntry struct {
protocol.PlayerListEntry
}
PlayerListEntry is an entry found in the PlayerList packet. It represents a single player using the UUID found in the entry, and contains several properties such as the skin.
func (*PlayerListEntry) Marshal ¶
func (x *PlayerListEntry) Marshal(r protocol.IO)
Marshal encodes/decodes a PlayerListEntry.
type Skin ¶
Skin represents the skin of a player as sent over network. The skin holds a texture and a model, and optional animations which may be present when the skin is created using persona or bought from the marketplace.
type StructureSettings ¶
type StructureSettings struct {
protocol.StructureSettings
}
StructureSettings is a struct holding settings of a structure block. Its fields may be changed using the in-game UI on the client-side.
func (*StructureSettings) Marshal ¶
func (x *StructureSettings) Marshal(r protocol.IO)
Marshal reads/writes StructureSettings x using IO r.
type SwapStackRequestAction ¶
type SwapStackRequestAction struct {
protocol.SwapStackRequestAction
}
func (*SwapStackRequestAction) Marshal ¶
func (a *SwapStackRequestAction) Marshal(r protocol.IO)
type TakeOutContainerStackRequestAction ¶
type TakeOutContainerStackRequestAction struct {
protocol.TakeOutContainerStackRequestAction
}
func (*TakeOutContainerStackRequestAction) Marshal ¶
func (a *TakeOutContainerStackRequestAction) Marshal(r protocol.IO)
type TakeStackRequestAction ¶
type TakeStackRequestAction struct {
protocol.TakeStackRequestAction
}
func (*TakeStackRequestAction) Marshal ¶
func (a *TakeStackRequestAction) Marshal(r protocol.IO)