Class PlayerPositionMessage
java.lang.Object
net.glowstone.net.message.play.player.PlayerUpdateMessage
net.glowstone.net.message.play.player.PlayerPositionMessage
- All Implemented Interfaces:
com.flowpowered.network.Message
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerPositionMessage(boolean onGround, double x, double y, double z) Creates a message to update a player's location. -
Method Summary
Methods inherited from class net.glowstone.net.message.play.player.PlayerUpdateMessage
isOnGround
-
Constructor Details
-
PlayerPositionMessage
public PlayerPositionMessage(boolean onGround, double x, double y, double z) Creates a message to update a player's location.- Parameters:
x- the player's X coordinatey- the player's Y coordinatez- the player's Z coordinateonGround- whether the player is on the ground
-
-
Method Details
-
update
public void update(org.bukkit.Location location) - Overrides:
updatein classPlayerUpdateMessage
-
moved
public boolean moved()- Overrides:
movedin classPlayerUpdateMessage
-
toString
- Specified by:
toStringin interfacecom.flowpowered.network.Message- Overrides:
toStringin classPlayerUpdateMessage
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
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
-