public class MovePlayerPacket extends java.lang.Object implements BedrockPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
MovePlayerPacket.Mode |
static class |
MovePlayerPacket.TeleportationCause |
| Constructor and Description |
|---|
MovePlayerPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
MovePlayerPacket |
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) |
int |
getEntityType() |
MovePlayerPacket.Mode |
getMode() |
BedrockPacketType |
getPacketType() |
org.cloudburstmc.math.vector.Vector3f |
getPosition() |
long |
getRidingRuntimeEntityId() |
org.cloudburstmc.math.vector.Vector3f |
getRotation() |
long |
getRuntimeEntityId() |
MovePlayerPacket.TeleportationCause |
getTeleportationCause() |
long |
getTick() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
boolean |
isOnGround() |
void |
setEntityType(int entityType) |
void |
setMode(MovePlayerPacket.Mode mode) |
void |
setOnGround(boolean onGround) |
void |
setPosition(org.cloudburstmc.math.vector.Vector3f position) |
void |
setRidingRuntimeEntityId(long ridingRuntimeEntityId) |
void |
setRotation(org.cloudburstmc.math.vector.Vector3f rotation) |
void |
setRuntimeEntityId(long runtimeEntityId) |
void |
setTeleportationCause(MovePlayerPacket.TeleportationCause teleportationCause) |
void |
setTick(long tick) |
java.lang.String |
toString() |
public final org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic MovePlayerPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic long getRuntimeEntityId()
public org.cloudburstmc.math.vector.Vector3f getPosition()
public org.cloudburstmc.math.vector.Vector3f getRotation()
public MovePlayerPacket.Mode getMode()
public boolean isOnGround()
public long getRidingRuntimeEntityId()
public MovePlayerPacket.TeleportationCause getTeleportationCause()
public int getEntityType()
public long getTick()
public void setRuntimeEntityId(long runtimeEntityId)
public void setPosition(org.cloudburstmc.math.vector.Vector3f position)
public void setRotation(org.cloudburstmc.math.vector.Vector3f rotation)
public void setMode(MovePlayerPacket.Mode mode)
public void setOnGround(boolean onGround)
public void setRidingRuntimeEntityId(long ridingRuntimeEntityId)
public void setTeleportationCause(MovePlayerPacket.TeleportationCause teleportationCause)
public void setEntityType(int entityType)
public void setTick(long tick)
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