public class MotionPredictionHintsPacket extends java.lang.Object implements BedrockPacket
SetEntityMotionPacket which adds the onGround field.| Constructor and Description |
|---|
MotionPredictionHintsPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
MotionPredictionHintsPacket |
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 |
getMotion()
Motion to set onto the specified entity
|
BedrockPacketType |
getPacketType() |
long |
getRuntimeEntityId()
The runtime ID of the entity to set motion.
|
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
boolean |
isOnGround()
If the entity is on the ground.
|
void |
setMotion(org.cloudburstmc.math.vector.Vector3f motion)
Motion to set onto the specified entity
|
void |
setOnGround(boolean onGround)
If the entity is on the ground.
|
void |
setRuntimeEntityId(long runtimeEntityId)
The runtime ID of the entity to set motion.
|
java.lang.String |
toString() |
public org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic MotionPredictionHintsPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic long getRuntimeEntityId()
public org.cloudburstmc.math.vector.Vector3f getMotion()
public boolean isOnGround()
public void setRuntimeEntityId(long runtimeEntityId)
runtimeEntityId - runtime IDpublic void setMotion(org.cloudburstmc.math.vector.Vector3f motion)
motion - motion of entitypublic void setOnGround(boolean onGround)
onGround - is entity on the groundpublic 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