Class EntityEquipmentUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityEquipmentUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class EntityEquipmentUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>equipmentListprivate intid -
Constructor Summary
Constructors Constructor Description EntityEquipmentUpdateS2CPacket()EntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>getEquipmentList()intgetId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
id
private int id -
equipmentList
-
-
Constructor Details
-
EntityEquipmentUpdateS2CPacket
public EntityEquipmentUpdateS2CPacket() -
EntityEquipmentUpdateS2CPacket
public EntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getId
@Environment(CLIENT) public int getId() -
getEquipmentList
@Environment(CLIENT) public List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> getEquipmentList()
-