|
static | new (array $actions, int $actionType, TriggerType $triggerType, BlockPosition $blockPosition, int $face, int $hotbarSlot, ItemStackWrapper $itemInHand, Vector3 $playerPosition, Vector3 $clickPosition, int $blockRuntimeId, PredictedResult $clientInteractPrediction) |
|
Definition at line 23 of file UseItemTransactionData.php.
◆ decode()
pocketmine\network\mcpe\protocol\types\inventory\TransactionData::decode |
( |
PacketSerializer | $stream | ) |
|
|
finalinherited |
◆ decodeData()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::decodeData |
( |
PacketSerializer | $stream | ) |
|
|
protected |
◆ encode()
pocketmine\network\mcpe\protocol\types\inventory\TransactionData::encode |
( |
PacketSerializer | $stream | ) |
|
|
finalinherited |
◆ encodeData()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::encodeData |
( |
PacketSerializer | $stream | ) |
|
|
protected |
◆ getActions()
pocketmine\network\mcpe\protocol\types\inventory\TransactionData::getActions |
( |
| ) |
|
|
finalinherited |
◆ getActionType()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getActionType |
( |
| ) |
|
◆ getBlockPosition()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getBlockPosition |
( |
| ) |
|
◆ getBlockRuntimeId()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getBlockRuntimeId |
( |
| ) |
|
◆ getClickPosition()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getClickPosition |
( |
| ) |
|
◆ getClientInteractPrediction()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getClientInteractPrediction |
( |
| ) |
|
◆ getFace()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getFace |
( |
| ) |
|
◆ getHotbarSlot()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getHotbarSlot |
( |
| ) |
|
◆ getItemInHand()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getItemInHand |
( |
| ) |
|
◆ getPlayerPosition()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getPlayerPosition |
( |
| ) |
|
◆ getTriggerType()
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getTriggerType |
( |
| ) |
|
◆ new()
static pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::new |
( |
array | $actions, |
|
|
int | $actionType, |
|
|
TriggerType | $triggerType, |
|
|
BlockPosition | $blockPosition, |
|
|
int | $face, |
|
|
int | $hotbarSlot, |
|
|
ItemStackWrapper | $itemInHand, |
|
|
Vector3 | $playerPosition, |
|
|
Vector3 | $clickPosition, |
|
|
int | $blockRuntimeId, |
|
|
PredictedResult | $clientInteractPrediction ) |
|
static |
◆ $actions
array pocketmine\network\mcpe\protocol\types\inventory\TransactionData::$actions = [] |
|
protectedinherited |
◆ ACTION_BREAK_BLOCK
const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ACTION_BREAK_BLOCK = 2 |
◆ ACTION_CLICK_AIR
const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ACTION_CLICK_AIR = 1 |
◆ ACTION_CLICK_BLOCK
const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ACTION_CLICK_BLOCK = 0 |
◆ ID
const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ID = InventoryTransactionPacket::TYPE_USE_ITEM |
The documentation for this class was generated from the following file: