public class InventoryTransactionPacket extends BedrockPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
InventoryTransactionPacket.Type |
| Constructor and Description |
|---|
InventoryTransactionPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<InventoryAction> |
getActions() |
int |
getActionType() |
com.nukkitx.math.vector.Vector3i |
getBlockPosition() |
int |
getBlockRuntimeId()
Runtime ID of block being picked.
|
com.nukkitx.math.vector.Vector3f |
getClickPosition() |
int |
getFace() |
com.nukkitx.math.vector.Vector3f |
getHeadPosition() |
int |
getHotbarSlot() |
ItemData |
getItemInHand() |
com.nukkitx.math.vector.Vector3f |
getPlayerPosition() |
long |
getRuntimeEntityId() |
InventoryTransactionPacket.Type |
getTransactionType() |
boolean |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setActionType(int actionType) |
void |
setBlockPosition(com.nukkitx.math.vector.Vector3i blockPosition) |
void |
setBlockRuntimeId(int blockRuntimeId)
Runtime ID of block being picked.
|
void |
setClickPosition(com.nukkitx.math.vector.Vector3f clickPosition) |
void |
setFace(int face) |
void |
setHeadPosition(com.nukkitx.math.vector.Vector3f headPosition) |
void |
setHotbarSlot(int hotbarSlot) |
void |
setItemInHand(ItemData itemInHand) |
void |
setPlayerPosition(com.nukkitx.math.vector.Vector3f playerPosition) |
void |
setRuntimeEntityId(long runtimeEntityId) |
void |
setTransactionType(InventoryTransactionPacket.Type transactionType) |
String |
toString() |
getHeader, setHeaderpublic final boolean handle(BedrockPacketHandler handler)
handle in class BedrockPacketpublic List<InventoryAction> getActions()
public InventoryTransactionPacket.Type getTransactionType()
public int getActionType()
public long getRuntimeEntityId()
public com.nukkitx.math.vector.Vector3i getBlockPosition()
public int getFace()
public int getHotbarSlot()
public ItemData getItemInHand()
public com.nukkitx.math.vector.Vector3f getPlayerPosition()
public com.nukkitx.math.vector.Vector3f getClickPosition()
public com.nukkitx.math.vector.Vector3f getHeadPosition()
public int getBlockRuntimeId()
public void setTransactionType(InventoryTransactionPacket.Type transactionType)
public void setActionType(int actionType)
public void setRuntimeEntityId(long runtimeEntityId)
public void setBlockPosition(com.nukkitx.math.vector.Vector3i blockPosition)
public void setFace(int face)
public void setHotbarSlot(int hotbarSlot)
public void setItemInHand(ItemData itemInHand)
public void setPlayerPosition(com.nukkitx.math.vector.Vector3f playerPosition)
public void setClickPosition(com.nukkitx.math.vector.Vector3f clickPosition)
public void setHeadPosition(com.nukkitx.math.vector.Vector3f headPosition)
public void setBlockRuntimeId(int blockRuntimeId)
blockRuntimeId - runtime ID of blockprotected boolean canEqual(Object other)
Copyright © 2018–2019 NukkitX. All rights reserved.