|
| static | create (Vector3 $position, Vector3 $delta, bool $onGround, int $tick, int $predictionType, Vector2 $vehicleRotation, ?float $vehicleAngularVelocity,) |
| |
◆ __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\CorrectPlayerMovePredictionPacket::create |
( |
Vector3 | $position, |
|
|
Vector3 | $delta, |
|
|
bool | $onGround, |
|
|
int | $tick, |
|
|
int | $predictionType, |
|
|
Vector2 | $vehicleRotation, |
|
|
?float | $vehicleAngularVelocity ) |
|
static |
◆ 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\CorrectPlayerMovePredictionPacket::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\CorrectPlayerMovePredictionPacket::encodePayload |
( |
ByteBufferWriter | $out | ) |
|
|
protected |
◆ getDelta()
| pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::getDelta |
( |
| ) |
|
◆ getName()
| pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ getPosition()
| pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::getPosition |
( |
| ) |
|
◆ getPredictionType()
| pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::getPredictionType |
( |
| ) |
|
◆ getTick()
| pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::getTick |
( |
| ) |
|
◆ getVehicleAngularVelocity()
| pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::getVehicleAngularVelocity |
( |
| ) |
|
◆ getVehicleRotation()
| pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::getVehicleRotation |
( |
| ) |
|
◆ 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 98 of file CorrectPlayerMovePredictionPacket.php.
◆ isOnGround()
| pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::isOnGround |
( |
| ) |
|
◆ pid()
| pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $recipientSubId
| int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
| int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ NETWORK_ID
| const pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::NETWORK_ID = ProtocolInfo::CORRECT_PLAYER_MOVE_PREDICTION_PACKET |
◆ PID_MASK
| const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
◆ PREDICTION_TYPE_PLAYER
| const pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::PREDICTION_TYPE_PLAYER = 0 |
◆ PREDICTION_TYPE_VEHICLE
| const pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket::PREDICTION_TYPE_VEHICLE = 1 |
The documentation for this class was generated from the following file: