Documentation

NpcRequestPacket extends DataPacket
in package
implements ServerboundPacket

Interfaces, Classes, Traits and Enums

ServerboundPacket

Table of Contents

NETWORK_ID  = \pocketmine\network\mcpe\protocol\ProtocolInfo::NPC_REQUEST_PACKET
PID_MASK  = 0x3ff
REQUEST_EXECUTE_ACTION  = 1
REQUEST_EXECUTE_CLOSING_COMMANDS  = 2
REQUEST_EXECUTE_OPENING_COMMANDS  = 6
REQUEST_SET_ACTIONS  = 0
REQUEST_SET_INTERACTION_TEXT  = 5
REQUEST_SET_NAME  = 3
REQUEST_SET_SKIN  = 4
RECIPIENT_SUBCLIENT_ID_SHIFT  = 12
SENDER_SUBCLIENT_ID_SHIFT  = 10
SUBCLIENT_ID_MASK  = 0x3
$actionIndex  : int
$actorRuntimeId  : int
$commandString  : string
$recipientSubId  : int
$requestType  : int
$sceneName  : string
$senderSubId  : int
__get()  : mixed
__set()  : void
canBeSentBeforeLogin()  : bool
create()  : self
decode()  : void
encode()  : void
getName()  : string
handle()  : bool
pid()  : int
decodeHeader()  : void
decodePayload()  : void
Decodes the packet body, without the packet ID or other generic header fields.
encodeHeader()  : void
encodePayload()  : void
Encodes the packet body, without the packet ID or other generic header fields.

Constants

NETWORK_ID

public mixed NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::NPC_REQUEST_PACKET

REQUEST_EXECUTE_CLOSING_COMMANDS

public mixed REQUEST_EXECUTE_CLOSING_COMMANDS = 2

REQUEST_EXECUTE_OPENING_COMMANDS

public mixed REQUEST_EXECUTE_OPENING_COMMANDS = 6

REQUEST_SET_INTERACTION_TEXT

public mixed REQUEST_SET_INTERACTION_TEXT = 5

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

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 $actorRuntimeId, int $requestType, string $commandString, int $actionIndex, string $sceneName) : self
Parameters
$actorRuntimeId : int
$requestType : int
$commandString : string
$actionIndex : int
$sceneName : string
Tags
generate-create-func
Return values
self

getName()

public getName() : string
Return values
string

Search results