Class EntityAnimationS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityAnimationS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class EntityAnimationS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private int
animationId
private int
id
-
Constructor Summary
Constructors Constructor Description EntityAnimationS2CPacket()
EntityAnimationS2CPacket(Entity entity, int animationId)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getAnimationId()
int
getId()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
id
private int id -
animationId
private int animationId
-
-
Constructor Details
-
EntityAnimationS2CPacket
public EntityAnimationS2CPacket() -
EntityAnimationS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getId
@Environment(CLIENT) public int getId() -
getAnimationId
@Environment(CLIENT) public int getAnimationId()
-