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
ConstructorsConstructorDescriptionPlayerLookMessage(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:
updatein classPlayerUpdateMessage
-
toString
- Specified by:
toStringin interfacecom.flowpowered.network.Message- Overrides:
toStringin classPlayerUpdateMessage
-
getYaw
public float getYaw() -
getPitch
public float getPitch() -
equals
- Specified by:
equalsin interfacecom.flowpowered.network.Message- Overrides:
equalsin classPlayerUpdateMessage
-
canEqual
- Overrides:
canEqualin classPlayerUpdateMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.flowpowered.network.Message- Overrides:
hashCodein classPlayerUpdateMessage
-