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
-
Constructor Summary
ConstructorDescriptionPlayerLookMessage
(float yaw, float pitch, boolean onGround) Creates a message to update the direction a player is facing. -
Method Summary
Methods inherited from class net.glowstone.net.message.play.player.PlayerUpdateMessage
isOnGround, moved
-
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 anglepitch
- the pitch angleonGround
- whether the player is on the ground
-
-
Method Details
-
update
public void update(org.bukkit.Location location) - Overrides:
update
in classPlayerUpdateMessage
-
toString
- Specified by:
toString
in interfacecom.flowpowered.network.Message
- Overrides:
toString
in classPlayerUpdateMessage
-
getYaw
public float getYaw() -
getPitch
public float getPitch() -
equals
- Specified by:
equals
in interfacecom.flowpowered.network.Message
- Overrides:
equals
in classPlayerUpdateMessage
-
canEqual
- Overrides:
canEqual
in classPlayerUpdateMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.flowpowered.network.Message
- Overrides:
hashCode
in classPlayerUpdateMessage
-