CompletedUsingItemPacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- ACTION_ATTACK = 2
- ACTION_CONSUME = 3
- ACTION_DYED = 13
- ACTION_EAT = 1
- ACTION_EQUIP_ARMOR = 0
- ACTION_FILL_BOTTLE = 7
- ACTION_FILL_BUCKET = 8
- ACTION_INTERACT = 11
- ACTION_PLACE = 6
- ACTION_POUR_BUCKET = 9
- ACTION_RETRIEVED = 12
- ACTION_SHOOT = 5
- ACTION_THROW = 4
- ACTION_TRADED = 14
- ACTION_UNKNOWN = -1
- ACTION_USE_TOOL = 10
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::COMPLETED_USING_ITEM_PACKET
- PID_MASK = 0x3ff
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $action : int
- $itemId : int
- $recipientSubId : int
- $senderSubId : int
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- create() : self
- decode() : void
- decodePayload() : void
- Decodes the packet body, without the packet ID or other generic header fields.
- encode() : void
- encodePayload() : void
- Encodes the packet body, without the packet ID or other generic header fields.
- getName() : string
- handle() : bool
- pid() : int
- decodeHeader() : void
- encodeHeader() : void
Constants
ACTION_ATTACK
public
mixed
ACTION_ATTACK
= 2
ACTION_CONSUME
public
mixed
ACTION_CONSUME
= 3
ACTION_DYED
public
mixed
ACTION_DYED
= 13
ACTION_EAT
public
mixed
ACTION_EAT
= 1
ACTION_EQUIP_ARMOR
public
mixed
ACTION_EQUIP_ARMOR
= 0
ACTION_FILL_BOTTLE
public
mixed
ACTION_FILL_BOTTLE
= 7
ACTION_FILL_BUCKET
public
mixed
ACTION_FILL_BUCKET
= 8
ACTION_INTERACT
public
mixed
ACTION_INTERACT
= 11
ACTION_PLACE
public
mixed
ACTION_PLACE
= 6
ACTION_POUR_BUCKET
public
mixed
ACTION_POUR_BUCKET
= 9
ACTION_RETRIEVED
public
mixed
ACTION_RETRIEVED
= 12
ACTION_SHOOT
public
mixed
ACTION_SHOOT
= 5
ACTION_THROW
public
mixed
ACTION_THROW
= 4
ACTION_TRADED
public
mixed
ACTION_TRADED
= 14
ACTION_UNKNOWN
public
mixed
ACTION_UNKNOWN
= -1
ACTION_USE_TOOL
public
mixed
ACTION_USE_TOOL
= 10
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::COMPLETED_USING_ITEM_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
RECIPIENT_SUBCLIENT_ID_SHIFT
private
mixed
RECIPIENT_SUBCLIENT_ID_SHIFT
= 12
SENDER_SUBCLIENT_ID_SHIFT
private
mixed
SENDER_SUBCLIENT_ID_SHIFT
= 10
SUBCLIENT_ID_MASK
private
mixed
SUBCLIENT_ID_MASK
= 0x3
Properties
$action
public
int
$action
$itemId
public
int
$itemId
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
Methods
__get()
public
__get(string $name) : mixed
Parameters
- $name : string
Return values
mixed —__set()
public
__set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
Return values
void —canBeSentBeforeLogin()
public
canBeSentBeforeLogin() : bool
Return values
bool —create()
public
static create(int $itemId, int $action) : self
Parameters
- $itemId : int
- $action : int
Tags
Return values
self —decode()
public
final decode(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —decodePayload()
Decodes the packet body, without the packet ID or other generic header fields.
public
decodePayload(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Return values
void —encode()
public
final encode(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —encodePayload()
Encodes the packet body, without the packet ID or other generic header fields.
public
encodePayload(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —getName()
public
getName() : string
Return values
string —handle()
public
handle(PacketHandlerInterface $handler) : bool
Parameters
- $handler : PacketHandlerInterface
Return values
bool —pid()
public
pid() : int
Return values
int —decodeHeader()
protected
decodeHeader(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —encodeHeader()
protected
encodeHeader(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer