|
static | create (int $actorRuntimeId, Vector3 $position, float $pitch, float $yaw, float $headYaw, int $mode, bool $onGround, int $ridingActorRuntimeId, int $teleportCause, int $teleportItem, int $tick,) |
|
static | simple (int $actorRuntimeId, Vector3 $position, float $pitch, float $yaw, float $headYaw, int $mode, bool $onGround, int $ridingActorRuntimeId, int $tick,) |
|
Definition at line 20 of file MovePlayerPacket.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\MovePlayerPacket::create |
( |
int | $actorRuntimeId, |
|
|
Vector3 | $position, |
|
|
float | $pitch, |
|
|
float | $yaw, |
|
|
float | $headYaw, |
|
|
int | $mode, |
|
|
bool | $onGround, |
|
|
int | $ridingActorRuntimeId, |
|
|
int | $teleportCause, |
|
|
int | $teleportItem, |
|
|
int | $tick ) |
|
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\MovePlayerPacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\MovePlayerPacket::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 117 of file MovePlayerPacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ simple()
static pocketmine\network\mcpe\protocol\MovePlayerPacket::simple |
( |
int | $actorRuntimeId, |
|
|
Vector3 | $position, |
|
|
float | $pitch, |
|
|
float | $yaw, |
|
|
float | $headYaw, |
|
|
int | $mode, |
|
|
bool | $onGround, |
|
|
int | $ridingActorRuntimeId, |
|
|
int | $tick ) |
|
static |
◆ $actorRuntimeId
int pocketmine\network\mcpe\protocol\MovePlayerPacket::$actorRuntimeId |
◆ $headYaw
float pocketmine\network\mcpe\protocol\MovePlayerPacket::$headYaw |
◆ $mode
int pocketmine\network\mcpe\protocol\MovePlayerPacket::$mode = self::MODE_NORMAL |
◆ $onGround
bool pocketmine\network\mcpe\protocol\MovePlayerPacket::$onGround = false |
◆ $pitch
float pocketmine\network\mcpe\protocol\MovePlayerPacket::$pitch |
◆ $position
Vector3 pocketmine\network\mcpe\protocol\MovePlayerPacket::$position |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $ridingActorRuntimeId
int pocketmine\network\mcpe\protocol\MovePlayerPacket::$ridingActorRuntimeId = 0 |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ $teleportCause
int pocketmine\network\mcpe\protocol\MovePlayerPacket::$teleportCause = 0 |
◆ $teleportItem
int pocketmine\network\mcpe\protocol\MovePlayerPacket::$teleportItem = 0 |
◆ $tick
int pocketmine\network\mcpe\protocol\MovePlayerPacket::$tick = 0 |
◆ $yaw
float pocketmine\network\mcpe\protocol\MovePlayerPacket::$yaw |
◆ MODE_NORMAL
const pocketmine\network\mcpe\protocol\MovePlayerPacket::MODE_NORMAL = 0 |
◆ MODE_PITCH
const pocketmine\network\mcpe\protocol\MovePlayerPacket::MODE_PITCH = 3 |
◆ MODE_RESET
const pocketmine\network\mcpe\protocol\MovePlayerPacket::MODE_RESET = 1 |
◆ MODE_TELEPORT
const pocketmine\network\mcpe\protocol\MovePlayerPacket::MODE_TELEPORT = 2 |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\MovePlayerPacket::NETWORK_ID = ProtocolInfo::MOVE_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: