|
static | create (int $actorUniqueId, int $actorRuntimeId, string $type, Vector3 $position, ?Vector3 $motion, float $pitch, float $yaw, float $headYaw, float $bodyYaw, array $attributes, array $metadata, PropertySyncData $syncedProperties, array $links,) |
|
Definition at line 25 of file AddActorPacket.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\AddActorPacket::create |
( |
int | $actorUniqueId, |
|
|
int | $actorRuntimeId, |
|
|
string | $type, |
|
|
Vector3 | $position, |
|
|
?Vector3 | $motion, |
|
|
float | $pitch, |
|
|
float | $yaw, |
|
|
float | $headYaw, |
|
|
float | $bodyYaw, |
|
|
array | $attributes, |
|
|
array | $metadata, |
|
|
PropertySyncData | $syncedProperties, |
|
|
array | $links ) |
|
static |
@generate-create-func
- Parameters
-
Attribute[] | $attributes | |
MetadataProperty[] | $metadata | |
EntityLink[] | $links | @phpstan-param array<int, MetadataProperty> $metadata |
Definition at line 56 of file AddActorPacket.php.
◆ 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\AddActorPacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\AddActorPacket::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 145 of file AddActorPacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $actorRuntimeId
int pocketmine\network\mcpe\protocol\AddActorPacket::$actorRuntimeId |
◆ $actorUniqueId
int pocketmine\network\mcpe\protocol\AddActorPacket::$actorUniqueId |
◆ $attributes
array pocketmine\network\mcpe\protocol\AddActorPacket::$attributes = [] |
◆ $bodyYaw
float pocketmine\network\mcpe\protocol\AddActorPacket::$bodyYaw = 0.0 |
◆ $headYaw
float pocketmine\network\mcpe\protocol\AddActorPacket::$headYaw = 0.0 |
◆ $links
array pocketmine\network\mcpe\protocol\AddActorPacket::$links = [] |
◆ $metadata
array pocketmine\network\mcpe\protocol\AddActorPacket::$metadata = [] |
◆ $motion
Vector3 pocketmine\network\mcpe\protocol\AddActorPacket::$motion = null |
◆ $pitch
float pocketmine\network\mcpe\protocol\AddActorPacket::$pitch = 0.0 |
◆ $position
Vector3 pocketmine\network\mcpe\protocol\AddActorPacket::$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\AddActorPacket::$syncedProperties |
◆ $type
string pocketmine\network\mcpe\protocol\AddActorPacket::$type |
◆ $yaw
float pocketmine\network\mcpe\protocol\AddActorPacket::$yaw = 0.0 |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\AddActorPacket::NETWORK_ID = ProtocolInfo::ADD_ACTOR_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: