Class PlayerPositionLookMessage

java.lang.Object
net.glowstone.net.message.play.player.PlayerUpdateMessage
net.glowstone.net.message.play.player.PlayerPositionLookMessage
All Implemented Interfaces:
com.flowpowered.network.Message

public final class PlayerPositionLookMessage extends PlayerUpdateMessage
  • Constructor Details

    • PlayerPositionLookMessage

      public PlayerPositionLookMessage(boolean onGround, double x, double y, double z, float yaw, float pitch)
      Creates a message to update a player's location and facing direction.
      Parameters:
      x - the player's X coordinate
      y - the player's Y coordinate
      z - the player's Z coordinate
      yaw - the yaw angle
      pitch - the pitch angle
      onGround - whether the player is on the ground
  • Method Details

    • update

      public void update(org.bukkit.Location location)
      Overrides:
      update in class PlayerUpdateMessage
    • moved

      public boolean moved()
      Overrides:
      moved in class PlayerUpdateMessage
    • toString

      public String toString()
      Specified by:
      toString in interface com.flowpowered.network.Message
      Overrides:
      toString in class PlayerUpdateMessage
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getYaw

      public float getYaw()
    • getPitch

      public float getPitch()
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface com.flowpowered.network.Message
      Overrides:
      equals in class PlayerUpdateMessage
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class PlayerUpdateMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.flowpowered.network.Message
      Overrides:
      hashCode in class PlayerUpdateMessage