public class InventoryTransactionPacket extends java.lang.Object implements BedrockPacket
| Constructor and Description |
|---|
InventoryTransactionPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.util.List<InventoryActionData> |
getActions() |
int |
getActionType() |
BlockDefinition |
getBlockDefinition()
Block definition of block being picked.
|
int |
getBlockFace() |
org.cloudburstmc.math.vector.Vector3i |
getBlockPosition() |
org.cloudburstmc.math.vector.Vector3f |
getClickPosition() |
org.cloudburstmc.math.vector.Vector3f |
getHeadPosition() |
int |
getHotbarSlot() |
ItemData |
getItemInHand() |
int |
getLegacyRequestId() |
java.util.List<LegacySetItemSlotData> |
getLegacySlots() |
BedrockPacketType |
getPacketType() |
org.cloudburstmc.math.vector.Vector3f |
getPlayerPosition() |
long |
getRuntimeEntityId() |
InventoryTransactionType |
getTransactionType() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
boolean |
isUsingNetIds()
Deprecated.
v431
|
void |
setActionType(int actionType) |
void |
setBlockDefinition(BlockDefinition blockDefinition)
Block definition of block being picked.
|
void |
setBlockFace(int blockFace) |
void |
setBlockPosition(org.cloudburstmc.math.vector.Vector3i blockPosition) |
void |
setClickPosition(org.cloudburstmc.math.vector.Vector3f clickPosition) |
void |
setHeadPosition(org.cloudburstmc.math.vector.Vector3f headPosition) |
void |
setHotbarSlot(int hotbarSlot) |
void |
setItemInHand(ItemData itemInHand) |
void |
setLegacyRequestId(int legacyRequestId) |
void |
setPlayerPosition(org.cloudburstmc.math.vector.Vector3f playerPosition) |
void |
setRuntimeEntityId(long runtimeEntityId) |
void |
setTransactionType(InventoryTransactionType transactionType) |
void |
setUsingNetIds(boolean usingNetIds)
Deprecated.
v431
|
java.lang.String |
toString() |
public final org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic int getLegacyRequestId()
public java.util.List<LegacySetItemSlotData> getLegacySlots()
public java.util.List<InventoryActionData> getActions()
public InventoryTransactionType getTransactionType()
public int getActionType()
public long getRuntimeEntityId()
public org.cloudburstmc.math.vector.Vector3i getBlockPosition()
public int getBlockFace()
public int getHotbarSlot()
public ItemData getItemInHand()
public org.cloudburstmc.math.vector.Vector3f getPlayerPosition()
public org.cloudburstmc.math.vector.Vector3f getClickPosition()
public org.cloudburstmc.math.vector.Vector3f getHeadPosition()
@Deprecated public boolean isUsingNetIds()
public BlockDefinition getBlockDefinition()
public void setLegacyRequestId(int legacyRequestId)
public void setTransactionType(InventoryTransactionType transactionType)
public void setActionType(int actionType)
public void setRuntimeEntityId(long runtimeEntityId)
public void setBlockPosition(org.cloudburstmc.math.vector.Vector3i blockPosition)
public void setBlockFace(int blockFace)
public void setHotbarSlot(int hotbarSlot)
public void setItemInHand(ItemData itemInHand)
public void setPlayerPosition(org.cloudburstmc.math.vector.Vector3f playerPosition)
public void setClickPosition(org.cloudburstmc.math.vector.Vector3f clickPosition)
public void setHeadPosition(org.cloudburstmc.math.vector.Vector3f headPosition)
@Deprecated public void setUsingNetIds(boolean usingNetIds)
public void setBlockDefinition(BlockDefinition blockDefinition)
blockDefinition - block definition of blockpublic 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