Represents a packet that is sent when an entity's equipment changes
Packet
getEntityID(): number
number
Gets the ID of the entity whose equipment changed
Returns
The entity ID
getEquipmentSlot(): number
Gets the equipment slot that was changed (0: main hand, 1-4: armor slots)
The equipment slot number
getItemStack(): ItemStack
ItemStack
Gets the ItemStack that was equipped
The equipped item
getPacketID(): string
string
Get the ID of the packet.
The ID of the packet.
Inherited from
Packet.getPacketID
getPacketID
Last updated 3 months ago