public class EntityAttributesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Class and Description |
|---|---|
class |
EntityAttributesS2CPacket.Entry |
| Modifier and Type | Field and Description |
|---|---|
private int |
entityId |
private List<EntityAttributesS2CPacket.Entry> |
entries |
| Constructor and Description |
|---|
EntityAttributesS2CPacket() |
EntityAttributesS2CPacket(int entityId,
Collection<EntityAttributeInstance> attributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getEntityId() |
List<EntityAttributesS2CPacket.Entry> |
getEntries() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate int entityId
private final List<EntityAttributesS2CPacket.Entry> entries
public EntityAttributesS2CPacket()
public EntityAttributesS2CPacket(int entityId,
Collection<EntityAttributeInstance> attributes)
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 getEntityId()
@Environment(value=CLIENT) public List<EntityAttributesS2CPacket.Entry> getEntries()