|
static | create (int $itemId, int $action) |
|
◆ __get()
pocketmine\network\mcpe\protocol\DataPacket::__get |
( |
| $name | ) |
|
|
inherited |
◆ __set()
pocketmine\network\mcpe\protocol\DataPacket::__set |
( |
| $name, |
|
|
| $value ) |
|
inherited |
◆ canBeSentBeforeLogin()
pocketmine\network\mcpe\protocol\DataPacket::canBeSentBeforeLogin |
( |
| ) |
|
|
inherited |
◆ create()
static pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::create |
( |
int | $itemId, |
|
|
int | $action ) |
|
static |
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer | $in | ) |
|
|
protectedinherited |
- Exceptions
-
BinaryDataException | |
PacketDecodeException | |
Definition at line 62 of file DataPacket.php.
◆ decodePayload()
pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::encodePayload |
( |
PacketSerializer | $out | ) |
|
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ handle()
Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for this.
This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a debug message will be logged with a hexdump of the packet.
Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets for examples how to implement this.
- Returns
- bool true if the packet was handled successfully, false if not.
- Exceptions
-
PacketDecodeException | if broken data was found in the packet |
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 63 of file CompletedUsingItemPacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $action
int pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::$action |
◆ $itemId
int pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::$itemId |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ ACTION_ATTACK
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_ATTACK = 2 |
◆ ACTION_BRUSHING_COMPLETED
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_BRUSHING_COMPLETED = 15 |
◆ ACTION_CONSUME
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_CONSUME = 3 |
◆ ACTION_DYED
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_DYED = 13 |
◆ ACTION_EAT
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_EAT = 1 |
◆ ACTION_EQUIP_ARMOR
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_EQUIP_ARMOR = 0 |
◆ ACTION_FILL_BOTTLE
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_FILL_BOTTLE = 7 |
◆ ACTION_FILL_BUCKET
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_FILL_BUCKET = 8 |
◆ ACTION_INTERACT
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_INTERACT = 11 |
◆ ACTION_PLACE
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_PLACE = 6 |
◆ ACTION_POUR_BUCKET
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_POUR_BUCKET = 9 |
◆ ACTION_RETRIEVED
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_RETRIEVED = 12 |
◆ ACTION_SHOOT
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_SHOOT = 5 |
◆ ACTION_THROW
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_THROW = 4 |
◆ ACTION_TRADED
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_TRADED = 14 |
◆ ACTION_UNKNOWN
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_UNKNOWN = -1 |
◆ ACTION_USE_TOOL
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::ACTION_USE_TOOL = 10 |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\CompletedUsingItemPacket::NETWORK_ID = ProtocolInfo::COMPLETED_USING_ITEM_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: