public class PlayerAuthInputPacket extends java.lang.Object implements BedrockPacket
| Constructor and Description |
|---|
PlayerAuthInputPacket() |
| 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() |
java.util.Set<PlayerAuthInputData> |
getInputData() |
InputInteractionModel |
getInputInteractionModel() |
InputMode |
getInputMode() |
ItemStackRequest |
getItemStackRequest()
inputData must contain PlayerAuthInputData.PERFORM_ITEM_STACK_REQUEST in order for this to not be null. |
ItemUseTransaction |
getItemUseTransaction()
inputData must contain PlayerAuthInputData.PERFORM_ITEM_INTERACTION in order for this to not be null. |
org.cloudburstmc.math.vector.Vector2f |
getMotion() |
BedrockPacketType |
getPacketType() |
java.util.List<PlayerBlockActionData> |
getPlayerActions()
inputData must contain PlayerAuthInputData.PERFORM_BLOCK_ACTIONS in order for this to not be empty. |
ClientPlayMode |
getPlayMode() |
org.cloudburstmc.math.vector.Vector3f |
getPosition() |
org.cloudburstmc.math.vector.Vector3f |
getRotation() |
long |
getTick() |
org.cloudburstmc.math.vector.Vector3f |
getVrGazeDirection() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setDelta(org.cloudburstmc.math.vector.Vector3f delta) |
void |
setInputInteractionModel(InputInteractionModel inputInteractionModel) |
void |
setInputMode(InputMode inputMode) |
void |
setItemStackRequest(ItemStackRequest itemStackRequest)
inputData must contain PlayerAuthInputData.PERFORM_ITEM_STACK_REQUEST in order for this to not be null. |
void |
setItemUseTransaction(ItemUseTransaction itemUseTransaction)
inputData must contain PlayerAuthInputData.PERFORM_ITEM_INTERACTION in order for this to not be null. |
void |
setMotion(org.cloudburstmc.math.vector.Vector2f motion) |
void |
setPlayMode(ClientPlayMode playMode) |
void |
setPosition(org.cloudburstmc.math.vector.Vector3f position) |
void |
setRotation(org.cloudburstmc.math.vector.Vector3f rotation) |
void |
setTick(long tick) |
void |
setVrGazeDirection(org.cloudburstmc.math.vector.Vector3f vrGazeDirection) |
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 getRotation()
public org.cloudburstmc.math.vector.Vector3f getPosition()
public org.cloudburstmc.math.vector.Vector2f getMotion()
public java.util.Set<PlayerAuthInputData> getInputData()
public InputMode getInputMode()
public ClientPlayMode getPlayMode()
public org.cloudburstmc.math.vector.Vector3f getVrGazeDirection()
public long getTick()
public org.cloudburstmc.math.vector.Vector3f getDelta()
public ItemUseTransaction getItemUseTransaction()
inputData must contain PlayerAuthInputData.PERFORM_ITEM_INTERACTION in order for this to not be null.public ItemStackRequest getItemStackRequest()
inputData must contain PlayerAuthInputData.PERFORM_ITEM_STACK_REQUEST in order for this to not be null.public java.util.List<PlayerBlockActionData> getPlayerActions()
inputData must contain PlayerAuthInputData.PERFORM_BLOCK_ACTIONS in order for this to not be empty.public InputInteractionModel getInputInteractionModel()
public void setRotation(org.cloudburstmc.math.vector.Vector3f rotation)
public void setPosition(org.cloudburstmc.math.vector.Vector3f position)
public void setMotion(org.cloudburstmc.math.vector.Vector2f motion)
public void setInputMode(InputMode inputMode)
public void setPlayMode(ClientPlayMode playMode)
public void setVrGazeDirection(org.cloudburstmc.math.vector.Vector3f vrGazeDirection)
public void setTick(long tick)
public void setDelta(org.cloudburstmc.math.vector.Vector3f delta)
public void setItemUseTransaction(ItemUseTransaction itemUseTransaction)
inputData must contain PlayerAuthInputData.PERFORM_ITEM_INTERACTION in order for this to not be null.public void setItemStackRequest(ItemStackRequest itemStackRequest)
inputData must contain PlayerAuthInputData.PERFORM_ITEM_STACK_REQUEST in order for this to not be null.public void setInputInteractionModel(InputInteractionModel inputInteractionModel)
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