public final class PlayerPositionMessage extends PlayerUpdateMessage
| Constructor and Description |
|---|
PlayerPositionMessage(boolean onGround,
double x,
double y,
double z)
Creates a message to update a player's location.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
boolean |
moved() |
String |
toString() |
void |
update(org.bukkit.Location location) |
isOnGroundpublic PlayerPositionMessage(boolean onGround,
double x,
double y,
double z)
x - the player's X coordinatey - the player's Y coordinatez - the player's Z coordinateonGround - whether the player is on the groundpublic void update(org.bukkit.Location location)
update in class PlayerUpdateMessagepublic boolean moved()
moved in class PlayerUpdateMessagepublic String toString()
toString in interface com.flowpowered.network.MessagetoString in class PlayerUpdateMessagepublic double getX()
public double getY()
public double getZ()
public boolean equals(Object o)
equals in interface com.flowpowered.network.Messageequals in class PlayerUpdateMessageprotected boolean canEqual(Object other)
canEqual in class PlayerUpdateMessagepublic int hashCode()
hashCode in interface com.flowpowered.network.MessagehashCode in class PlayerUpdateMessageCopyright © 2021. All rights reserved.