Class WrapperPlayServerLookAt

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

public class WrapperPlayServerLookAt extends AbstractPacket
Send by server to client to rotate the client player to face the given location or entity.
  • Field Details

    • TYPE

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

    • WrapperPlayServerLookAt

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

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

    • getX

      public double getX()
      Retrieves the value of field 'x'
      Returns:
      'x'
    • setX

      public void setX(double value)
      Sets the value of field 'x'
      Parameters:
      value - New value for field 'x'
    • getY

      public double getY()
      Retrieves the value of field 'y'
      Returns:
      'y'
    • setY

      public void setY(double value)
      Sets the value of field 'y'
      Parameters:
      value - New value for field 'y'
    • getZ

      public double getZ()
      Retrieves the value of field 'z'
      Returns:
      'z'
    • setZ

      public void setZ(double value)
      Sets the value of field 'z'
      Parameters:
      value - New value for field 'z'
    • getEntity

      public int getEntity()
      Retrieves the value of field 'entity'
      Returns:
      'entity'
    • setEntity

      public void setEntity(int value)
      Sets the value of field 'entity'
      Parameters:
      value - New value for field 'entity'
    • getFromAnchorInternal

      @Deprecated public com.comphenix.protocol.events.InternalStructure getFromAnchorInternal()
      Deprecated.
      Use getFromAnchor() instead
      Retrieves the value of field 'fromAnchor'
      Returns:
      'fromAnchor'
    • setFromAnchorInternal

      @Deprecated public void setFromAnchorInternal(com.comphenix.protocol.events.InternalStructure value)
      Deprecated.
      Sets the value of field 'fromAnchor' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure
      Parameters:
      value - New value for field 'fromAnchor'
    • getToAnchorInternal

      @Deprecated public com.comphenix.protocol.events.InternalStructure getToAnchorInternal()
      Deprecated.
      Use getToAnchor() instead
      Retrieves the value of field 'toAnchor' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure
      Returns:
      'toAnchor'
    • setToAnchorInternal

      @Deprecated public void setToAnchorInternal(com.comphenix.protocol.events.InternalStructure value)
      Deprecated.
      Sets the value of field 'toAnchor' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure
      Parameters:
      value - New value for field 'toAnchor'
    • getFromAnchor

      public WrapperPlayServerLookAt.Anchor getFromAnchor()
      Retrieves the value of field 'fromAnchor'
      Returns:
      'fromAnchor'
    • setFromAnchor

      public void setFromAnchor(WrapperPlayServerLookAt.Anchor value)
      Sets the value of field 'fromAnchor'
      Parameters:
      value - New value for field 'fromAnchor'
    • getToAnchor

      public WrapperPlayServerLookAt.Anchor getToAnchor()
      Retrieves the value of field 'toAnchor'
      Returns:
      'toAnchor'
    • setToAnchor

      public void setToAnchor(WrapperPlayServerLookAt.Anchor value)
      Sets the value of field 'toAnchor'
      Parameters:
      value - New value for field 'toAnchor'
    • getAtEntity

      public boolean getAtEntity()
      Retrieves the value of field 'atEntity'
      Returns:
      'atEntity'
    • setAtEntity

      public void setAtEntity(boolean value)
      Sets the value of field 'atEntity'
      Parameters:
      value - New value for field 'atEntity'