Class EntityAttributesS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityAttributesS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class EntityAttributesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classEntityAttributesS2CPacket.Entry -
Field Summary
Fields Modifier and Type Field Description private intentityIdprivate List<EntityAttributesS2CPacket.Entry>entries -
Constructor Summary
Constructors Constructor Description EntityAttributesS2CPacket()EntityAttributesS2CPacket(int entityId, Collection<EntityAttributeInstance> attributes) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetEntityId()List<EntityAttributesS2CPacket.Entry>getEntries()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
-
entityId
private int entityId -
entries
-
-
Constructor Details
-
EntityAttributesS2CPacket
public EntityAttributesS2CPacket() -
EntityAttributesS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getEntityId
@Environment(CLIENT) public int getEntityId() -
getEntries
-