public final class PlayerLookMessage extends PlayerUpdateMessage
| Constructor and Description |
|---|
PlayerLookMessage(float yaw,
float pitch,
boolean onGround)
Creates a message to update the direction a player is facing.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
float |
getPitch() |
float |
getYaw() |
int |
hashCode() |
String |
toString() |
void |
update(org.bukkit.Location location) |
isOnGround, movedpublic PlayerLookMessage(float yaw,
float pitch,
boolean onGround)
yaw - the yaw anglepitch - the pitch angleonGround - whether the player is on the groundpublic void update(org.bukkit.Location location)
update in class PlayerUpdateMessagepublic String toString()
toString in interface com.flowpowered.network.MessagetoString in class PlayerUpdateMessagepublic float getYaw()
public float getPitch()
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.