Class WrapperPlayServerEntityHeadRotation

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

public class WrapperPlayServerEntityHeadRotation extends AbstractPacket
  • Field Details

    • TYPE

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

    • WrapperPlayServerEntityHeadRotation

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

      public WrapperPlayServerEntityHeadRotation(com.comphenix.protocol.events.PacketContainer packet)
  • Method Details

    • getEntityId

      public int getEntityId()
      Retrieves the value of field 'entityId'
      Returns:
      'entityId'
    • setEntityId

      public void setEntityId(int value)
      Sets the value of field 'entityId'
      Parameters:
      value - New value for field 'entityId'
    • getYHeadRot

      public byte getYHeadRot()
      Retrieves the value of field 'yHeadRot'
      Returns:
      'yHeadRot'
    • getYHeadRotAngle

      public float getYHeadRotAngle()
      Gets the rotation of the head in degrees between 0.0 deg and 1.0 deg.
      Returns:
      head rotation in degree
    • setYHeadRot

      public void setYHeadRot(byte value)
      Sets the value of field 'yHeadRot'
      Parameters:
      value - New value for field 'yHeadRot'
    • setYHeadRotAngle

      public void setYHeadRotAngle(float newAngle)
      Sets the rotation of the head in degrees between 0.0 deg and 1.0 deg.
      Parameters:
      newAngle - rotation of head in degree