types

package
v0.0.0-...-1cf8517 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StackReqSlotInfo

func StackReqSlotInfo(r protocol.IO, x *protocol.StackRequestSlotInfo)

Types

type Attribute

type Attribute struct {
	protocol.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.

func (*Attribute) Marshal

func (x *Attribute) Marshal(r protocol.IO)

Marshal encodes/decodes an Attribute.

type AutoCraftRecipeStackRequestAction

type AutoCraftRecipeStackRequestAction struct {
	protocol.AutoCraftRecipeStackRequestAction
}

func (*AutoCraftRecipeStackRequestAction) Marshal

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

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

type Skin struct {
	protocol.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.

func (*Skin) Marshal

func (x *Skin) Marshal(r protocol.IO)

Marshal encodes/decodes a Skin.

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

type TakeStackRequestAction

type TakeStackRequestAction struct {
	protocol.TakeStackRequestAction
}

func (*TakeStackRequestAction) Marshal

func (a *TakeStackRequestAction) Marshal(r protocol.IO)

Jump to

Keyboard shortcuts

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