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
-
Constructor Summary
ConstructorDescriptionPlayerPositionLookMessage
(boolean onGround, double x, double y, double z, float yaw, float pitch) Creates a message to update a player's location and facing direction. -
Method Summary
Methods inherited from class net.glowstone.net.message.play.player.PlayerUpdateMessage
isOnGround
-
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 coordinatey
- the player's Y coordinatez
- the player's Z coordinateyaw
- 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
-
moved
public boolean moved()- Overrides:
moved
in classPlayerUpdateMessage
-
toString
- Specified by:
toString
in interfacecom.flowpowered.network.Message
- Overrides:
toString
in classPlayerUpdateMessage
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
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
-