public class PacketPlayOutEntityEquipment extends WrappedPacket
Modifier and Type | Field and Description |
---|---|
int |
entityId |
ItemStackWrapper |
item |
int |
slot
Slot number: 0 - held 1 - boots 2 - leggings 3 - chestplate 4 - helmet
|
Constructor and Description |
---|
PacketPlayOutEntityEquipment(int entityId,
int slot,
ItemStackWrapper item) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getVanillaPacket()
Converts this wrapped packet to a Vanilla/NMS packet
|
void |
loadVanillaPacket(java.lang.Object packet)
Loads a Vanilla/NMS packet to this wrapper
|
toNMS
public int entityId
public ItemStackWrapper item
public int slot
public PacketPlayOutEntityEquipment(int entityId, int slot, ItemStackWrapper item)
public java.lang.Object getVanillaPacket()
WrappedPacket
getVanillaPacket
in class WrappedPacket
public void loadVanillaPacket(java.lang.Object packet)
WrappedPacket
loadVanillaPacket
in class WrappedPacket
packet
- - The loadable packet