Class ClientboundSwingAnimationPacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundSwingAnimationPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundSwingAnimationPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundSwingAnimationPacket

      public ClientboundSwingAnimationPacket(io.netty.buffer.ByteBuf in)
    • ClientboundSwingAnimationPacket

      public ClientboundSwingAnimationPacket(int entityId, Hand hand, SwingAnimation animation)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out)
      Specified by:
      serialize in interface MinecraftPacket
    • getEntityId

      public int getEntityId()
    • getHand

      public Hand getHand()
    • getAnimation

      public SwingAnimation getAnimation()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withEntityId

      public @NonNull ClientboundSwingAnimationPacket withEntityId(int entityId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHand

      public @NonNull ClientboundSwingAnimationPacket withHand(Hand hand)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAnimation

      public @NonNull ClientboundSwingAnimationPacket withAnimation(SwingAnimation animation)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).