public class CorrectPlayerMovePredictionPacket extends java.lang.Object implements BedrockPacket
| Constructor and Description |
|---|
CorrectPlayerMovePredictionPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
org.cloudburstmc.math.vector.Vector3f |
getDelta()
Difference in client and server prediction
|
BedrockPacketType |
getPacketType() |
org.cloudburstmc.math.vector.Vector3f |
getPosition()
Client's reported position by the server
|
long |
getTick()
The tick which is being corrected by the server.
|
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
boolean |
isOnGround()
If the client is on the ground.
|
void |
setDelta(org.cloudburstmc.math.vector.Vector3f delta)
Difference in client and server prediction
|
void |
setOnGround(boolean onGround)
If the client is on the ground.
|
void |
setPosition(org.cloudburstmc.math.vector.Vector3f position)
Client's reported position by the server
|
void |
setTick(long tick)
The tick which is being corrected by the server.
|
java.lang.String |
toString() |
public org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic org.cloudburstmc.math.vector.Vector3f getPosition()
public org.cloudburstmc.math.vector.Vector3f getDelta()
public boolean isOnGround()
public long getTick()
public void setPosition(org.cloudburstmc.math.vector.Vector3f position)
position - reported positionpublic void setDelta(org.cloudburstmc.math.vector.Vector3f delta)
delta - position differencepublic void setOnGround(boolean onGround)
onGround - is client on the groundpublic void setTick(long tick)
tick - to be correctedpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object