|
| static | create (UuidInterface $uuid, string $username, int $actorRuntimeId, string $platformChatId, Vector3 $position, ?Vector3 $motion, float $pitch, float $yaw, float $headYaw, ItemStackWrapper $item, int $gameMode, array $metadata, PropertySyncData $syncedProperties, UpdateAbilitiesPacket $abilitiesPacket, array $links, string $deviceId, int $buildPlatform,) |
| |
Definition at line 31 of file AddPlayerPacket.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\AddPlayerPacket::create |
( |
UuidInterface | $uuid, |
|
|
string | $username, |
|
|
int | $actorRuntimeId, |
|
|
string | $platformChatId, |
|
|
Vector3 | $position, |
|
|
?Vector3 | $motion, |
|
|
float | $pitch, |
|
|
float | $yaw, |
|
|
float | $headYaw, |
|
|
ItemStackWrapper | $item, |
|
|
int | $gameMode, |
|
|
array | $metadata, |
|
|
PropertySyncData | $syncedProperties, |
|
|
UpdateAbilitiesPacket | $abilitiesPacket, |
|
|
array | $links, |
|
|
string | $deviceId, |
|
|
int | $buildPlatform ) |
|
static |
@generate-create-func
- Parameters
-
| MetadataProperty[] | $metadata | |
| EntityLink[] | $links | @phpstan-param array<int, MetadataProperty> $metadata |
Definition at line 65 of file AddPlayerPacket.php.
◆ decode()
| pocketmine\network\mcpe\protocol\DataPacket::decode |
( |
ByteBufferReader | $in | ) |
|
|
finalinherited |
◆ decodeHeader()
| pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
ByteBufferReader | $in | ) |
|
|
protectedinherited |
- Exceptions
-
| DataDecodeException | |
| PacketDecodeException | |
Definition at line 64 of file DataPacket.php.
◆ decodePayload()
| pocketmine\network\mcpe\protocol\AddPlayerPacket::decodePayload |
( |
ByteBufferReader | $in | ) |
|
|
protected |
◆ encode()
| pocketmine\network\mcpe\protocol\DataPacket::encode |
( |
ByteBufferWriter | $out | ) |
|
|
finalinherited |
◆ encodeHeader()
| pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
ByteBufferWriter | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
| pocketmine\network\mcpe\protocol\AddPlayerPacket::encodePayload |
( |
ByteBufferWriter | $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 158 of file AddPlayerPacket.php.
◆ pid()
| pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $abilitiesPacket
◆ $actorRuntimeId
| int pocketmine\network\mcpe\protocol\AddPlayerPacket::$actorRuntimeId |
◆ $buildPlatform
| int pocketmine\network\mcpe\protocol\AddPlayerPacket::$buildPlatform = DeviceOS::UNKNOWN |
◆ $deviceId
| string pocketmine\network\mcpe\protocol\AddPlayerPacket::$deviceId = "" |
◆ $gameMode
| int pocketmine\network\mcpe\protocol\AddPlayerPacket::$gameMode |
◆ $headYaw
| float pocketmine\network\mcpe\protocol\AddPlayerPacket::$headYaw = 0.0 |
◆ $item
◆ $links
| array pocketmine\network\mcpe\protocol\AddPlayerPacket::$links = [] |
◆ $metadata
| array pocketmine\network\mcpe\protocol\AddPlayerPacket::$metadata = [] |
◆ $motion
| Vector3 pocketmine\network\mcpe\protocol\AddPlayerPacket::$motion = null |
◆ $pitch
| float pocketmine\network\mcpe\protocol\AddPlayerPacket::$pitch = 0.0 |
◆ $platformChatId
| string pocketmine\network\mcpe\protocol\AddPlayerPacket::$platformChatId = "" |
◆ $position
| Vector3 pocketmine\network\mcpe\protocol\AddPlayerPacket::$position |
◆ $recipientSubId
| int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
| int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ $syncedProperties
| PropertySyncData pocketmine\network\mcpe\protocol\AddPlayerPacket::$syncedProperties |
◆ $username
| string pocketmine\network\mcpe\protocol\AddPlayerPacket::$username |
◆ $uuid
| UuidInterface pocketmine\network\mcpe\protocol\AddPlayerPacket::$uuid |
◆ $yaw
| float pocketmine\network\mcpe\protocol\AddPlayerPacket::$yaw = 0.0 |
◆ NETWORK_ID
| const pocketmine\network\mcpe\protocol\AddPlayerPacket::NETWORK_ID = ProtocolInfo::ADD_PLAYER_PACKET |
◆ PID_MASK
| const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: