public final class PlayerPositionLookMessage extends PlayerUpdateMessage
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
float |
getPitch() |
double |
getX() |
double |
getY() |
float |
getYaw() |
double |
getZ() |
int |
hashCode() |
boolean |
moved() |
String |
toString() |
void |
update(org.bukkit.Location location) |
isOnGround
public PlayerPositionLookMessage(boolean onGround, double x, double y, double z, float yaw, float pitch)
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 groundpublic void update(org.bukkit.Location location)
update
in class PlayerUpdateMessage
public boolean moved()
moved
in class PlayerUpdateMessage
public String toString()
toString
in interface com.flowpowered.network.Message
toString
in class PlayerUpdateMessage
public double getX()
public double getY()
public double getZ()
public float getYaw()
public float getPitch()
public boolean equals(Object o)
equals
in interface com.flowpowered.network.Message
equals
in class PlayerUpdateMessage
protected boolean canEqual(Object other)
canEqual
in class PlayerUpdateMessage
public int hashCode()
hashCode
in interface com.flowpowered.network.Message
hashCode
in class PlayerUpdateMessage
Copyright © 2021. All rights reserved.