public interface MovementPacketWrapper
Modifier and Type | Method and Description |
---|---|
Object |
getPacketObject()
Get the NMS packet object
|
float |
getPitch()
Get Pitch of the Packet
|
double |
getX()
Get X Coord of the Packet
|
double |
getY()
Get Y Coord of the Packet
|
float |
getYaw()
Get Yaw of the Packet
|
double |
getZ()
Get Z Coord of the Packet
|
boolean |
hasPosition()
Has position changed by the packet
|
boolean |
hasRotation()
Has rotation changed by the packet
|
boolean |
onGround()
Is the player on ground by the packet
|
void |
setHasPosition(boolean hasPosition)
Set Has position for the Packet
|
void |
setHasRotation(boolean hasRotation)
Set Has rotation for the Packet
|
void |
setOnGround(boolean onGround)
Set is On Ground for the Packet
|
void |
setPitch(float pitch)
Set Pitch for the Packet
|
void |
setX(double x)
Set X Coord for the Packet
|
void |
setY(double y)
Set Y Coord for the Packet
|
void |
setYaw(float yaw)
Set Yaw for the Packet
|
void |
setZ(double z)
Set Z Coord for the Packet
|
double getX()
double getY()
double getZ()
float getPitch()
float getYaw()
boolean onGround()
boolean hasPosition()
boolean hasRotation()
void setX(double x)
x
- the X Coordvoid setY(double y)
y
- the Y Coordvoid setZ(double z)
z
- the Z Coordvoid setPitch(float pitch)
pitch
- the Pitchvoid setYaw(float yaw)
yaw
- the Yawvoid setOnGround(boolean onGround)
onGround
- is Player On Groundvoid setHasPosition(boolean hasPosition)
hasPosition
- is the packet Changes Positionvoid setHasRotation(boolean hasRotation)
hasRotation
- is the packet Changes RotationObject getPacketObject()
Copyright © 2022. All rights reserved.