|
static | create (int $actorRuntimeId, int $requestType, string $commandString, int $actionIndex, string $sceneName) |
|
Definition at line 19 of file NpcRequestPacket.php.
◆ __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\NpcRequestPacket::create |
( |
int | $actorRuntimeId, |
|
|
int | $requestType, |
|
|
string | $commandString, |
|
|
int | $actionIndex, |
|
|
string | $sceneName ) |
|
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\NpcRequestPacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\NpcRequestPacket::encodePayload |
( |
PacketSerializer | $out | ) |
|
|
protected |
◆ 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 65 of file NpcRequestPacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $actionIndex
int pocketmine\network\mcpe\protocol\NpcRequestPacket::$actionIndex |
◆ $actorRuntimeId
int pocketmine\network\mcpe\protocol\NpcRequestPacket::$actorRuntimeId |
◆ $commandString
string pocketmine\network\mcpe\protocol\NpcRequestPacket::$commandString |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $requestType
int pocketmine\network\mcpe\protocol\NpcRequestPacket::$requestType |
◆ $sceneName
string pocketmine\network\mcpe\protocol\NpcRequestPacket::$sceneName |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\NpcRequestPacket::NETWORK_ID = ProtocolInfo::NPC_REQUEST_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
◆ REQUEST_EXECUTE_ACTION
const pocketmine\network\mcpe\protocol\NpcRequestPacket::REQUEST_EXECUTE_ACTION = 1 |
◆ REQUEST_EXECUTE_CLOSING_COMMANDS
const pocketmine\network\mcpe\protocol\NpcRequestPacket::REQUEST_EXECUTE_CLOSING_COMMANDS = 2 |
◆ REQUEST_EXECUTE_OPENING_COMMANDS
const pocketmine\network\mcpe\protocol\NpcRequestPacket::REQUEST_EXECUTE_OPENING_COMMANDS = 6 |
◆ REQUEST_SET_ACTIONS
const pocketmine\network\mcpe\protocol\NpcRequestPacket::REQUEST_SET_ACTIONS = 0 |
◆ REQUEST_SET_INTERACTION_TEXT
const pocketmine\network\mcpe\protocol\NpcRequestPacket::REQUEST_SET_INTERACTION_TEXT = 5 |
◆ REQUEST_SET_NAME
const pocketmine\network\mcpe\protocol\NpcRequestPacket::REQUEST_SET_NAME = 3 |
◆ REQUEST_SET_SKIN
const pocketmine\network\mcpe\protocol\NpcRequestPacket::REQUEST_SET_SKIN = 4 |
The documentation for this class was generated from the following file: