Class WrapperPlayServerAnimation

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerAnimation

public class WrapperPlayServerAnimation extends AbstractPacket
Sent whenever an entity should change animation.
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerAnimation

      public WrapperPlayServerAnimation()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerAnimation

      public WrapperPlayServerAnimation(com.comphenix.protocol.events.PacketContainer packet)
      Constructors a new wrapper for the specified packet
      Parameters:
      packet - the packet to wrap
  • Method Details

    • getId

      public int getId()
      Sets the id of the entity
      Returns:
      'id'
    • setId

      public void setId(int value)
      Sets the id of the entity
      Parameters:
      value - New value for field 'id'
    • getActionId

      public int getActionId()
      Retrieves the numerical index of the corresponding action
      Returns:
      'action'
    • getAction

      Retrieves the animation as an enum
      Returns:
      'action'
    • setActionId

      public void setActionId(int value)
      Sets the numerical index of the corresponding animation
      Parameters:
      value - New value for field 'action'
    • setAction

      public void setAction(WrapperPlayServerAnimation.Animation value)
      Sets the animation
      Parameters:
      value - New value for field 'action'