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) |
CorrectPlayerMovePredictionPacket |
clone()
Creates a new instance of this packet using Object.clone()
Will throw a
UnsupportedOperationException if the packet implements ReferenceCounted |
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
|
PredictionType |
getPredictionType() |
long |
getTick()
The tick which is being corrected by the server.
|
java.lang.Float |
getVehicleAngularVelocity() |
org.cloudburstmc.math.vector.Vector2f |
getVehicleRotation() |
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 |
setPredictionType(PredictionType predictionType) |
void |
setTick(long tick)
The tick which is being corrected by the server.
|
void |
setVehicleAngularVelocity(java.lang.Float vehicleAngularVelocity) |
void |
setVehicleRotation(org.cloudburstmc.math.vector.Vector2f vehicleRotation) |
java.lang.String |
toString() |
public org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic CorrectPlayerMovePredictionPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic org.cloudburstmc.math.vector.Vector3f getPosition()
public org.cloudburstmc.math.vector.Vector3f getDelta()
public boolean isOnGround()
public long getTick()
public PredictionType getPredictionType()
public org.cloudburstmc.math.vector.Vector2f getVehicleRotation()
public java.lang.Float getVehicleAngularVelocity()
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 void setPredictionType(PredictionType predictionType)
public void setVehicleRotation(org.cloudburstmc.math.vector.Vector2f vehicleRotation)
public void setVehicleAngularVelocity(java.lang.Float vehicleAngularVelocity)
public 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