Class ClientboundHurtAnimationPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundHurtAnimationPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundHurtAnimationPacket(int id, float yaw) ClientboundHurtAnimationPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintgetId()floatgetYaw()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundHurtAnimationPacketwithId(int id) @NonNull ClientboundHurtAnimationPacketwithYaw(float yaw) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundHurtAnimationPacket
public ClientboundHurtAnimationPacket(io.netty.buffer.ByteBuf in) -
ClientboundHurtAnimationPacket
public ClientboundHurtAnimationPacket(int id, float yaw)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getId
public int getId() -
getYaw
public float getYaw() -
equals
-
canEqual
-
hashCode
-
toString
-
withId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-