use pocketmine\network\mcpe\NetworkSession; class PassengerJumpPacket extends DataPacket{ public const NETWORK_ID = ProtocolInfo::PASSENGER_JUMP_PACKET; /** @var int */ public $jumpStrength; //percentage protected function decodePayload(){ $this->jumpStrength = $this->getVarInt(); } protected function encodePayload(){ $this->putVarInt($this->jumpStrength); } public function handle(NetworkSession $handler) : bool{ return $handler->handlePassengerJump($this); } }