Class PlayerLookMessage

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

public final class PlayerLookMessage extends PlayerUpdateMessage
  • Constructor Details

    • PlayerLookMessage

      public PlayerLookMessage(float yaw, float pitch, boolean onGround)
      Creates a message to update the direction a player is facing.
      Parameters:
      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
    • toString

      public String toString()
      Specified by:
      toString in interface com.flowpowered.network.Message
      Overrides:
      toString in class PlayerUpdateMessage
    • 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