S2FPacketSetSlot

Represents a packet that is sent when an item slot changes in a container

Extends

Methods

getItemStack()

getItemStack(): ItemStack

Gets the new ItemStack in the slot

Returns

ItemStack

The ItemStack object


getPacketID()

getPacketID(): string

Get the ID of the packet.

Returns

string

The ID of the packet.

Inherited from

Packet.getPacketID


getSlot()

getSlot(): number

Gets the slot number that was changed

Returns

number

The slot number


getWindowId()

getWindowId(): number

Gets the ID of the window containing the slot

Returns

number

The window ID

Last updated