public class PlayerActionPacket extends java.lang.Object implements BedrockPacket
| Constructor and Description |
|---|
PlayerActionPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
PlayerActionPacket |
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) |
PlayerActionType |
getAction() |
org.cloudburstmc.math.vector.Vector3i |
getBlockPosition() |
int |
getFace() |
BedrockPacketType |
getPacketType() |
org.cloudburstmc.math.vector.Vector3i |
getResultPosition() |
long |
getRuntimeEntityId() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setAction(PlayerActionType action) |
void |
setBlockPosition(org.cloudburstmc.math.vector.Vector3i blockPosition) |
void |
setFace(int face) |
void |
setResultPosition(org.cloudburstmc.math.vector.Vector3i resultPosition) |
void |
setRuntimeEntityId(long runtimeEntityId) |
java.lang.String |
toString() |
public final org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic PlayerActionPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic long getRuntimeEntityId()
public PlayerActionType getAction()
public org.cloudburstmc.math.vector.Vector3i getBlockPosition()
public org.cloudburstmc.math.vector.Vector3i getResultPosition()
public int getFace()
public void setRuntimeEntityId(long runtimeEntityId)
public void setAction(PlayerActionType action)
public void setBlockPosition(org.cloudburstmc.math.vector.Vector3i blockPosition)
public void setResultPosition(org.cloudburstmc.math.vector.Vector3i resultPosition)
public void setFace(int face)
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