public class EntityEquipmentUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> |
equipmentList |
private int |
id |
| Constructor and Description |
|---|
EntityEquipmentUpdateS2CPacket() |
EntityEquipmentUpdateS2CPacket(int id,
List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> |
getEquipmentList() |
int |
getId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate int id
private final List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList
public EntityEquipmentUpdateS2CPacket()
public EntityEquipmentUpdateS2CPacket(int id,
List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public int getId()
@Environment(value=CLIENT) public List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> getEquipmentList()