mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 11:27:07 +00:00
break the hard cycle between mcpe\handler and mcpe\protocol
preparing to move mcpe\protocol to a separate library
This commit is contained in:
parent
18d48869a0
commit
1b26cf1df9
@ -98,6 +98,7 @@ use pocketmine\network\mcpe\protocol\NetworkSettingsPacket;
|
||||
use pocketmine\network\mcpe\protocol\NetworkStackLatencyPacket;
|
||||
use pocketmine\network\mcpe\protocol\NpcRequestPacket;
|
||||
use pocketmine\network\mcpe\protocol\OnScreenTextureAnimationPacket;
|
||||
use pocketmine\network\mcpe\protocol\PacketHandlerInterface;
|
||||
use pocketmine\network\mcpe\protocol\PhotoTransferPacket;
|
||||
use pocketmine\network\mcpe\protocol\PlayerActionPacket;
|
||||
use pocketmine\network\mcpe\protocol\PlayerAuthInputPacket;
|
||||
@ -172,7 +173,7 @@ use pocketmine\network\mcpe\protocol\VideoStreamConnectPacket;
|
||||
*
|
||||
* This class is an automatically generated stub. Do not edit it manually.
|
||||
*/
|
||||
abstract class PacketHandler{
|
||||
abstract class PacketHandler implements PacketHandlerInterface{
|
||||
|
||||
public function setUp() : void{
|
||||
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ActorEventPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -118,7 +117,7 @@ class ActorEventPacket extends DataPacket implements ClientboundPacket, Serverbo
|
||||
$out->putVarInt($this->data);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleActorEvent($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ActorFallPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -50,7 +49,7 @@ class ActorFallPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBool($this->isInVoid);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleActorFall($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ActorPickRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -46,7 +45,7 @@ class ActorPickRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putByte($this->hotbarSlot);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleActorPickRequest($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\Attribute;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\EntityLegacyIds;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\EntityLink;
|
||||
@ -224,7 +223,7 @@ class AddActorPacket extends DataPacket implements ClientboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAddActor($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class AddBehaviorTreePacket extends DataPacket implements ClientboundPacket{
|
||||
@ -42,7 +41,7 @@ class AddBehaviorTreePacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putString($this->behaviorTreeJson);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAddBehaviorTree($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class AddEntityPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -52,7 +51,7 @@ class AddEntityPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putUnsignedVarInt($this->uvarint1);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAddEntity($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\MetadataProperty;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
@ -72,7 +71,7 @@ class AddItemActorPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putBool($this->isFromFishing);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAddItemActor($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class AddPaintingPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -59,7 +58,7 @@ class AddPaintingPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putString($this->title);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAddPainting($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\EntityLink;
|
||||
use pocketmine\network\mcpe\protocol\types\entity\MetadataProperty;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
|
||||
@ -150,7 +149,7 @@ class AddPlayerPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putLInt($this->buildPlatform);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAddPlayer($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\PlayerPermissions;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
@ -116,7 +115,7 @@ class AdventureSettingsPacket extends DataPacket implements ClientboundPacket, S
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAdventureSettings($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class AnimatePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -75,7 +74,7 @@ class AnimatePacket extends DataPacket implements ClientboundPacket, Serverbound
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAnimate($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class AnvilDamagePacket extends DataPacket implements ServerboundPacket{
|
||||
@ -73,7 +72,7 @@ class AnvilDamagePacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBlockPosition($this->x, $this->y, $this->z);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAnvilDamage($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class AutomationClientConnectPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -42,7 +41,7 @@ class AutomationClientConnectPacket extends DataPacket implements ClientboundPac
|
||||
$out->putString($this->serverUri);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAutomationClientConnect($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function base64_decode;
|
||||
use function file_get_contents;
|
||||
@ -51,7 +50,7 @@ class AvailableActorIdentifiersPacket extends DataPacket implements ClientboundP
|
||||
);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAvailableActorIdentifiers($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\BadPacketException;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\command\CommandData;
|
||||
use pocketmine\network\mcpe\protocol\types\command\CommandEnum;
|
||||
use pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint;
|
||||
@ -482,7 +481,7 @@ class AvailableCommandsPacket extends DataPacket implements ClientboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleAvailableCommands($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function file_get_contents;
|
||||
|
||||
@ -50,7 +49,7 @@ class BiomeDefinitionListPacket extends DataPacket implements ClientboundPacket{
|
||||
);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleBiomeDefinitionList($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class BlockActorDataPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -57,7 +56,7 @@ class BlockActorDataPacket extends DataPacket implements ClientboundPacket, Serv
|
||||
$out->put($this->namedtag);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleBlockActorData($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class BlockEventPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -65,7 +64,7 @@ class BlockEventPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putVarInt($this->eventData);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleBlockEvent($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class BlockPickRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -54,7 +53,7 @@ class BlockPickRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putByte($this->hotbarSlot);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleBlockPickRequest($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\BadPacketException;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class BookEditPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -115,7 +114,7 @@ class BookEditPacket extends DataPacket implements ServerboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleBookEdit($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class BossEventPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -179,7 +178,7 @@ class BossEventPacket extends DataPacket implements ClientboundPacket, Serverbou
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleBossEvent($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class CameraPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -46,7 +45,7 @@ class CameraPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putEntityUniqueId($this->playerUniqueId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleCamera($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ChangeDimensionPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -51,7 +50,7 @@ class ChangeDimensionPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putBool($this->respawn);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleChangeDimension($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ChunkRadiusUpdatedPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -48,7 +47,7 @@ class ChunkRadiusUpdatedPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putVarInt($this->radius);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleChunkRadiusUpdated($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
|
||||
@ -88,7 +87,7 @@ class ClientCacheBlobStatusPacket extends DataPacket implements ServerboundPacke
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleClientCacheBlobStatus($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\ChunkCacheBlob;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
@ -71,7 +70,7 @@ class ClientCacheMissResponsePacket extends DataPacket implements ClientboundPac
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleClientCacheMissResponse($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ClientCacheStatusPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -52,7 +51,7 @@ class ClientCacheStatusPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBool($this->enabled);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleClientCacheStatus($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ClientToServerHandshakePacket extends DataPacket implements ServerboundPacket{
|
||||
@ -43,7 +42,7 @@ class ClientToServerHandshakePacket extends DataPacket implements ServerboundPac
|
||||
//No payload
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleClientToServerHandshake($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\BadPacketException;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\DimensionIds;
|
||||
use pocketmine\network\mcpe\protocol\types\MapDecoration;
|
||||
use pocketmine\network\mcpe\protocol\types\MapTrackedObject;
|
||||
@ -204,7 +203,7 @@ class ClientboundMapItemDataPacket extends DataPacket implements ClientboundPack
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleClientboundMapItemData($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class CommandBlockUpdatePacket extends DataPacket implements ServerboundPacket{
|
||||
@ -106,7 +105,7 @@ class CommandBlockUpdatePacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBool($this->executeOnFirstTick);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleCommandBlockUpdate($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\command\CommandOriginData;
|
||||
use pocketmine\network\mcpe\protocol\types\command\CommandOutputMessage;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
@ -101,7 +100,7 @@ class CommandOutputPacket extends DataPacket implements ClientboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleCommandOutput($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\command\CommandOriginData;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
@ -51,7 +50,7 @@ class CommandRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBool($this->isInternal);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleCommandRequest($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class CompletedUsingItemPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -63,7 +62,7 @@ class CompletedUsingItemPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putLInt($this->action);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleCompletedUsingItem($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ContainerClosePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -48,7 +47,7 @@ class ContainerClosePacket extends DataPacket implements ClientboundPacket, Serv
|
||||
$out->putByte($this->windowId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleContainerClose($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ContainerOpenPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -80,7 +79,7 @@ class ContainerOpenPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putEntityUniqueId($this->entityUniqueId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleContainerOpen($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ContainerSetDataPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -68,7 +67,7 @@ class ContainerSetDataPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putVarInt($this->value);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleContainerSetData($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\BadPacketException;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\PotionContainerChangeRecipe;
|
||||
use pocketmine\network\mcpe\protocol\types\PotionTypeRecipe;
|
||||
use pocketmine\network\mcpe\protocol\types\recipe\FurnaceRecipe;
|
||||
@ -121,7 +120,7 @@ class CraftingDataPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putBool($this->cleanRecipes);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleCraftingData($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use pocketmine\utils\UUID;
|
||||
@ -77,7 +76,7 @@ class CraftingEventPacket extends DataPacket implements ServerboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleCraftingEvent($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class DisconnectPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -67,7 +66,7 @@ class DisconnectPacket extends DataPacket implements ClientboundPacket, Serverbo
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleDisconnect($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class EducationSettingsPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -61,7 +60,7 @@ class EducationSettingsPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putBool($this->hasQuiz);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleEducationSettings($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class EmotePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -75,7 +74,7 @@ class EmotePacket extends DataPacket implements ClientboundPacket, ServerboundPa
|
||||
$out->putByte($this->flags);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleEmote($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class EventPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -73,7 +72,7 @@ class EventPacket extends DataPacket implements ClientboundPacket{
|
||||
//TODO: also nice confusing mess
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleEvent($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class GameRulesChangedPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -45,7 +44,7 @@ class GameRulesChangedPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putGameRules($this->gameRules);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleGameRulesChanged($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class GuiDataPickItemPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -50,7 +49,7 @@ class GuiDataPickItemPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putLInt($this->hotbarSlot);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleGuiDataPickItem($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class HurtArmorPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -42,7 +41,7 @@ class HurtArmorPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putVarInt($this->health);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleHurtArmor($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class InteractPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -71,7 +70,7 @@ class InteractPacket extends DataPacket implements ServerboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleInteract($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
@ -66,7 +65,7 @@ class InventoryContentPacket extends DataPacket implements ClientboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleInventoryContent($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
@ -60,7 +59,7 @@ class InventorySlotPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putSlot($this->item);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleInventorySlot($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\BadPacketException;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\MismatchTransactionData;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\NormalTransactionData;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData;
|
||||
@ -81,7 +80,7 @@ class InventoryTransactionPacket extends DataPacket implements ClientboundPacket
|
||||
$this->trData->encode($out);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleInventoryTransaction($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ItemFrameDropItemPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -47,7 +46,7 @@ class ItemFrameDropItemPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBlockPosition($this->x, $this->y, $this->z);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleItemFrameDropItem($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class LabTablePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -60,7 +59,7 @@ class LabTablePacket extends DataPacket implements ClientboundPacket, Serverboun
|
||||
$out->putByte($this->reactionType);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLabTable($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class LecternUpdatePacket extends DataPacket implements ServerboundPacket{
|
||||
@ -58,7 +57,7 @@ class LecternUpdatePacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBool($this->dropBook);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLecternUpdate($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
|
||||
@ -128,7 +127,7 @@ class LevelChunkPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putString($this->extraPayload);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLevelChunk($this);
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\nbt\TreeRoot;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use pocketmine\network\mcpe\serializer\NetworkNbtSerializer;
|
||||
|
||||
@ -64,7 +63,7 @@ class LevelEventGenericPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->put($this->eventData);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLevelEventGeneric($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class LevelEventPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -146,7 +145,7 @@ class LevelEventPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putVarInt($this->data);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLevelEvent($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class LevelSoundEventPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -354,7 +353,7 @@ class LevelSoundEventPacket extends DataPacket implements ClientboundPacket, Ser
|
||||
$out->putBool($this->disableRelativeVolume);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLevelSoundEvent($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
/**
|
||||
@ -66,7 +65,7 @@ class LevelSoundEventPacketV1 extends DataPacket{
|
||||
$out->putBool($this->disableRelativeVolume);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLevelSoundEventPacketV1($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
/**
|
||||
@ -66,7 +65,7 @@ class LevelSoundEventPacketV2 extends DataPacket{
|
||||
$out->putBool($this->disableRelativeVolume);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLevelSoundEventPacketV2($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\BadPacketException;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\login\AuthenticationData;
|
||||
use pocketmine\network\mcpe\protocol\types\login\ClientData;
|
||||
use pocketmine\network\mcpe\protocol\types\login\JwtChain;
|
||||
@ -142,7 +141,7 @@ class LoginPacket extends DataPacket implements ServerboundPacket{
|
||||
//TODO
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleLogin($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class MapCreateLockedCopyPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -46,7 +45,7 @@ class MapCreateLockedCopyPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putEntityUniqueId($this->newMapId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMapCreateLockedCopy($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class MapInfoRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -42,7 +41,7 @@ class MapInfoRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putEntityUniqueId($this->mapId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMapInfoRequest($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
@ -73,7 +72,7 @@ class MobArmorEquipmentPacket extends DataPacket implements ClientboundPacket, S
|
||||
$out->putSlot($this->feet);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMobArmorEquipment($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class MobEffectPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -85,7 +84,7 @@ class MobEffectPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putVarInt($this->duration);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMobEffect($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
@ -69,7 +68,7 @@ class MobEquipmentPacket extends DataPacket implements ClientboundPacket, Server
|
||||
$out->putByte($this->windowId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMobEquipment($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ModalFormRequestPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -53,7 +52,7 @@ class ModalFormRequestPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putString($this->formData);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleModalFormRequest($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ModalFormResponsePacket extends DataPacket implements ServerboundPacket{
|
||||
@ -46,7 +45,7 @@ class ModalFormResponsePacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putString($this->formData);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleModalFormResponse($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class MoveActorAbsolutePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -66,7 +65,7 @@ class MoveActorAbsolutePacket extends DataPacket implements ClientboundPacket, S
|
||||
$out->putByteRotation($this->zRot);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMoveActorAbsolute($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use pocketmine\utils\BinaryDataException;
|
||||
|
||||
@ -110,7 +109,7 @@ class MoveActorDeltaPacket extends DataPacket implements ClientboundPacket{
|
||||
$this->maybeWriteRotation(self::FLAG_HAS_ROT_Z, $this->zRot, $out);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMoveActorDelta($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class MovePlayerPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -88,7 +87,7 @@ class MovePlayerPacket extends DataPacket implements ClientboundPacket, Serverbo
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMovePlayer($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class MultiplayerSettingsPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -56,7 +55,7 @@ class MultiplayerSettingsPacket extends DataPacket implements ClientboundPacket,
|
||||
$out->putVarInt($this->action);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleMultiplayerSettings($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class NetworkChunkPublisherUpdatePacket extends DataPacket implements ClientboundPacket{
|
||||
@ -59,7 +58,7 @@ class NetworkChunkPublisherUpdatePacket extends DataPacket implements Clientboun
|
||||
$out->putUnsignedVarInt($this->radius);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleNetworkChunkPublisherUpdate($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class NetworkSettingsPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -55,7 +54,7 @@ class NetworkSettingsPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putLShort($this->compressionThreshold);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleNetworkSettings($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class NetworkStackLatencyPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -46,7 +45,7 @@ class NetworkStackLatencyPacket extends DataPacket implements ClientboundPacket,
|
||||
$out->putBool($this->needResponse);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleNetworkStackLatency($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class NpcRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -54,7 +53,7 @@ class NpcRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putByte($this->actionType);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleNpcRequest($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class OnScreenTextureAnimationPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -42,7 +41,7 @@ class OnScreenTextureAnimationPacket extends DataPacket implements ClientboundPa
|
||||
$out->putLInt($this->effectId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleOnScreenTextureAnimation($this);
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ declare(strict_types=1);
|
||||
namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
use pocketmine\network\BadPacketException;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
interface Packet{
|
||||
@ -54,8 +53,10 @@ interface Packet{
|
||||
* Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets
|
||||
* for examples how to implement this.
|
||||
*
|
||||
* @param PacketHandlerInterface $handler
|
||||
*
|
||||
* @return bool true if the packet was handled successfully, false if not.
|
||||
* @throws BadPacketException if broken data was found in the packet
|
||||
*/
|
||||
public function handle(PacketHandler $handler) : bool;
|
||||
public function handle(PacketHandlerInterface $handler) : bool;
|
||||
}
|
||||
|
313
src/network/mcpe/protocol/PacketHandlerInterface.php
Normal file
313
src/network/mcpe/protocol/PacketHandlerInterface.php
Normal file
@ -0,0 +1,313 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
*
|
||||
* ____ _ _ __ __ _ __ __ ____
|
||||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* @author PocketMine Team
|
||||
* @link http://www.pocketmine.net/
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
/**
|
||||
* This class is an automatically generated stub. Do not edit it manually.
|
||||
*/
|
||||
interface PacketHandlerInterface{
|
||||
public function handleLogin(LoginPacket $packet) : bool;
|
||||
|
||||
public function handlePlayStatus(PlayStatusPacket $packet) : bool;
|
||||
|
||||
public function handleServerToClientHandshake(ServerToClientHandshakePacket $packet) : bool;
|
||||
|
||||
public function handleClientToServerHandshake(ClientToServerHandshakePacket $packet) : bool;
|
||||
|
||||
public function handleDisconnect(DisconnectPacket $packet) : bool;
|
||||
|
||||
public function handleResourcePacksInfo(ResourcePacksInfoPacket $packet) : bool;
|
||||
|
||||
public function handleResourcePackStack(ResourcePackStackPacket $packet) : bool;
|
||||
|
||||
public function handleResourcePackClientResponse(ResourcePackClientResponsePacket $packet) : bool;
|
||||
|
||||
public function handleText(TextPacket $packet) : bool;
|
||||
|
||||
public function handleSetTime(SetTimePacket $packet) : bool;
|
||||
|
||||
public function handleStartGame(StartGamePacket $packet) : bool;
|
||||
|
||||
public function handleAddPlayer(AddPlayerPacket $packet) : bool;
|
||||
|
||||
public function handleAddActor(AddActorPacket $packet) : bool;
|
||||
|
||||
public function handleRemoveActor(RemoveActorPacket $packet) : bool;
|
||||
|
||||
public function handleAddItemActor(AddItemActorPacket $packet) : bool;
|
||||
|
||||
public function handleTakeItemActor(TakeItemActorPacket $packet) : bool;
|
||||
|
||||
public function handleMoveActorAbsolute(MoveActorAbsolutePacket $packet) : bool;
|
||||
|
||||
public function handleMovePlayer(MovePlayerPacket $packet) : bool;
|
||||
|
||||
public function handleRiderJump(RiderJumpPacket $packet) : bool;
|
||||
|
||||
public function handleUpdateBlock(UpdateBlockPacket $packet) : bool;
|
||||
|
||||
public function handleAddPainting(AddPaintingPacket $packet) : bool;
|
||||
|
||||
public function handleTickSync(TickSyncPacket $packet) : bool;
|
||||
|
||||
public function handleLevelSoundEventPacketV1(LevelSoundEventPacketV1 $packet) : bool;
|
||||
|
||||
public function handleLevelEvent(LevelEventPacket $packet) : bool;
|
||||
|
||||
public function handleBlockEvent(BlockEventPacket $packet) : bool;
|
||||
|
||||
public function handleActorEvent(ActorEventPacket $packet) : bool;
|
||||
|
||||
public function handleMobEffect(MobEffectPacket $packet) : bool;
|
||||
|
||||
public function handleUpdateAttributes(UpdateAttributesPacket $packet) : bool;
|
||||
|
||||
public function handleInventoryTransaction(InventoryTransactionPacket $packet) : bool;
|
||||
|
||||
public function handleMobEquipment(MobEquipmentPacket $packet) : bool;
|
||||
|
||||
public function handleMobArmorEquipment(MobArmorEquipmentPacket $packet) : bool;
|
||||
|
||||
public function handleInteract(InteractPacket $packet) : bool;
|
||||
|
||||
public function handleBlockPickRequest(BlockPickRequestPacket $packet) : bool;
|
||||
|
||||
public function handleActorPickRequest(ActorPickRequestPacket $packet) : bool;
|
||||
|
||||
public function handlePlayerAction(PlayerActionPacket $packet) : bool;
|
||||
|
||||
public function handleActorFall(ActorFallPacket $packet) : bool;
|
||||
|
||||
public function handleHurtArmor(HurtArmorPacket $packet) : bool;
|
||||
|
||||
public function handleSetActorData(SetActorDataPacket $packet) : bool;
|
||||
|
||||
public function handleSetActorMotion(SetActorMotionPacket $packet) : bool;
|
||||
|
||||
public function handleSetActorLink(SetActorLinkPacket $packet) : bool;
|
||||
|
||||
public function handleSetHealth(SetHealthPacket $packet) : bool;
|
||||
|
||||
public function handleSetSpawnPosition(SetSpawnPositionPacket $packet) : bool;
|
||||
|
||||
public function handleAnimate(AnimatePacket $packet) : bool;
|
||||
|
||||
public function handleRespawn(RespawnPacket $packet) : bool;
|
||||
|
||||
public function handleContainerOpen(ContainerOpenPacket $packet) : bool;
|
||||
|
||||
public function handleContainerClose(ContainerClosePacket $packet) : bool;
|
||||
|
||||
public function handlePlayerHotbar(PlayerHotbarPacket $packet) : bool;
|
||||
|
||||
public function handleInventoryContent(InventoryContentPacket $packet) : bool;
|
||||
|
||||
public function handleInventorySlot(InventorySlotPacket $packet) : bool;
|
||||
|
||||
public function handleContainerSetData(ContainerSetDataPacket $packet) : bool;
|
||||
|
||||
public function handleCraftingData(CraftingDataPacket $packet) : bool;
|
||||
|
||||
public function handleCraftingEvent(CraftingEventPacket $packet) : bool;
|
||||
|
||||
public function handleGuiDataPickItem(GuiDataPickItemPacket $packet) : bool;
|
||||
|
||||
public function handleAdventureSettings(AdventureSettingsPacket $packet) : bool;
|
||||
|
||||
public function handleBlockActorData(BlockActorDataPacket $packet) : bool;
|
||||
|
||||
public function handlePlayerInput(PlayerInputPacket $packet) : bool;
|
||||
|
||||
public function handleLevelChunk(LevelChunkPacket $packet) : bool;
|
||||
|
||||
public function handleSetCommandsEnabled(SetCommandsEnabledPacket $packet) : bool;
|
||||
|
||||
public function handleSetDifficulty(SetDifficultyPacket $packet) : bool;
|
||||
|
||||
public function handleChangeDimension(ChangeDimensionPacket $packet) : bool;
|
||||
|
||||
public function handleSetPlayerGameType(SetPlayerGameTypePacket $packet) : bool;
|
||||
|
||||
public function handlePlayerList(PlayerListPacket $packet) : bool;
|
||||
|
||||
public function handleSimpleEvent(SimpleEventPacket $packet) : bool;
|
||||
|
||||
public function handleEvent(EventPacket $packet) : bool;
|
||||
|
||||
public function handleSpawnExperienceOrb(SpawnExperienceOrbPacket $packet) : bool;
|
||||
|
||||
public function handleClientboundMapItemData(ClientboundMapItemDataPacket $packet) : bool;
|
||||
|
||||
public function handleMapInfoRequest(MapInfoRequestPacket $packet) : bool;
|
||||
|
||||
public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool;
|
||||
|
||||
public function handleChunkRadiusUpdated(ChunkRadiusUpdatedPacket $packet) : bool;
|
||||
|
||||
public function handleItemFrameDropItem(ItemFrameDropItemPacket $packet) : bool;
|
||||
|
||||
public function handleGameRulesChanged(GameRulesChangedPacket $packet) : bool;
|
||||
|
||||
public function handleCamera(CameraPacket $packet) : bool;
|
||||
|
||||
public function handleBossEvent(BossEventPacket $packet) : bool;
|
||||
|
||||
public function handleShowCredits(ShowCreditsPacket $packet) : bool;
|
||||
|
||||
public function handleAvailableCommands(AvailableCommandsPacket $packet) : bool;
|
||||
|
||||
public function handleCommandRequest(CommandRequestPacket $packet) : bool;
|
||||
|
||||
public function handleCommandBlockUpdate(CommandBlockUpdatePacket $packet) : bool;
|
||||
|
||||
public function handleCommandOutput(CommandOutputPacket $packet) : bool;
|
||||
|
||||
public function handleUpdateTrade(UpdateTradePacket $packet) : bool;
|
||||
|
||||
public function handleUpdateEquip(UpdateEquipPacket $packet) : bool;
|
||||
|
||||
public function handleResourcePackDataInfo(ResourcePackDataInfoPacket $packet) : bool;
|
||||
|
||||
public function handleResourcePackChunkData(ResourcePackChunkDataPacket $packet) : bool;
|
||||
|
||||
public function handleResourcePackChunkRequest(ResourcePackChunkRequestPacket $packet) : bool;
|
||||
|
||||
public function handleTransfer(TransferPacket $packet) : bool;
|
||||
|
||||
public function handlePlaySound(PlaySoundPacket $packet) : bool;
|
||||
|
||||
public function handleStopSound(StopSoundPacket $packet) : bool;
|
||||
|
||||
public function handleSetTitle(SetTitlePacket $packet) : bool;
|
||||
|
||||
public function handleAddBehaviorTree(AddBehaviorTreePacket $packet) : bool;
|
||||
|
||||
public function handleStructureBlockUpdate(StructureBlockUpdatePacket $packet) : bool;
|
||||
|
||||
public function handleShowStoreOffer(ShowStoreOfferPacket $packet) : bool;
|
||||
|
||||
public function handlePurchaseReceipt(PurchaseReceiptPacket $packet) : bool;
|
||||
|
||||
public function handlePlayerSkin(PlayerSkinPacket $packet) : bool;
|
||||
|
||||
public function handleSubClientLogin(SubClientLoginPacket $packet) : bool;
|
||||
|
||||
public function handleAutomationClientConnect(AutomationClientConnectPacket $packet) : bool;
|
||||
|
||||
public function handleSetLastHurtBy(SetLastHurtByPacket $packet) : bool;
|
||||
|
||||
public function handleBookEdit(BookEditPacket $packet) : bool;
|
||||
|
||||
public function handleNpcRequest(NpcRequestPacket $packet) : bool;
|
||||
|
||||
public function handlePhotoTransfer(PhotoTransferPacket $packet) : bool;
|
||||
|
||||
public function handleModalFormRequest(ModalFormRequestPacket $packet) : bool;
|
||||
|
||||
public function handleModalFormResponse(ModalFormResponsePacket $packet) : bool;
|
||||
|
||||
public function handleServerSettingsRequest(ServerSettingsRequestPacket $packet) : bool;
|
||||
|
||||
public function handleServerSettingsResponse(ServerSettingsResponsePacket $packet) : bool;
|
||||
|
||||
public function handleShowProfile(ShowProfilePacket $packet) : bool;
|
||||
|
||||
public function handleSetDefaultGameType(SetDefaultGameTypePacket $packet) : bool;
|
||||
|
||||
public function handleRemoveObjective(RemoveObjectivePacket $packet) : bool;
|
||||
|
||||
public function handleSetDisplayObjective(SetDisplayObjectivePacket $packet) : bool;
|
||||
|
||||
public function handleSetScore(SetScorePacket $packet) : bool;
|
||||
|
||||
public function handleLabTable(LabTablePacket $packet) : bool;
|
||||
|
||||
public function handleUpdateBlockSynced(UpdateBlockSyncedPacket $packet) : bool;
|
||||
|
||||
public function handleMoveActorDelta(MoveActorDeltaPacket $packet) : bool;
|
||||
|
||||
public function handleSetScoreboardIdentity(SetScoreboardIdentityPacket $packet) : bool;
|
||||
|
||||
public function handleSetLocalPlayerAsInitialized(SetLocalPlayerAsInitializedPacket $packet) : bool;
|
||||
|
||||
public function handleUpdateSoftEnum(UpdateSoftEnumPacket $packet) : bool;
|
||||
|
||||
public function handleNetworkStackLatency(NetworkStackLatencyPacket $packet) : bool;
|
||||
|
||||
public function handleScriptCustomEvent(ScriptCustomEventPacket $packet) : bool;
|
||||
|
||||
public function handleSpawnParticleEffect(SpawnParticleEffectPacket $packet) : bool;
|
||||
|
||||
public function handleAvailableActorIdentifiers(AvailableActorIdentifiersPacket $packet) : bool;
|
||||
|
||||
public function handleLevelSoundEventPacketV2(LevelSoundEventPacketV2 $packet) : bool;
|
||||
|
||||
public function handleNetworkChunkPublisherUpdate(NetworkChunkPublisherUpdatePacket $packet) : bool;
|
||||
|
||||
public function handleBiomeDefinitionList(BiomeDefinitionListPacket $packet) : bool;
|
||||
|
||||
public function handleLevelSoundEvent(LevelSoundEventPacket $packet) : bool;
|
||||
|
||||
public function handleLevelEventGeneric(LevelEventGenericPacket $packet) : bool;
|
||||
|
||||
public function handleLecternUpdate(LecternUpdatePacket $packet) : bool;
|
||||
|
||||
public function handleVideoStreamConnect(VideoStreamConnectPacket $packet) : bool;
|
||||
|
||||
public function handleAddEntity(AddEntityPacket $packet) : bool;
|
||||
|
||||
public function handleRemoveEntity(RemoveEntityPacket $packet) : bool;
|
||||
|
||||
public function handleClientCacheStatus(ClientCacheStatusPacket $packet) : bool;
|
||||
|
||||
public function handleOnScreenTextureAnimation(OnScreenTextureAnimationPacket $packet) : bool;
|
||||
|
||||
public function handleMapCreateLockedCopy(MapCreateLockedCopyPacket $packet) : bool;
|
||||
|
||||
public function handleStructureTemplateDataRequest(StructureTemplateDataRequestPacket $packet) : bool;
|
||||
|
||||
public function handleStructureTemplateDataResponse(StructureTemplateDataResponsePacket $packet) : bool;
|
||||
|
||||
public function handleUpdateBlockProperties(UpdateBlockPropertiesPacket $packet) : bool;
|
||||
|
||||
public function handleClientCacheBlobStatus(ClientCacheBlobStatusPacket $packet) : bool;
|
||||
|
||||
public function handleClientCacheMissResponse(ClientCacheMissResponsePacket $packet) : bool;
|
||||
|
||||
public function handleEducationSettings(EducationSettingsPacket $packet) : bool;
|
||||
|
||||
public function handleEmote(EmotePacket $packet) : bool;
|
||||
|
||||
public function handleMultiplayerSettings(MultiplayerSettingsPacket $packet) : bool;
|
||||
|
||||
public function handleSettingsCommand(SettingsCommandPacket $packet) : bool;
|
||||
|
||||
public function handleAnvilDamage(AnvilDamagePacket $packet) : bool;
|
||||
|
||||
public function handleCompletedUsingItem(CompletedUsingItemPacket $packet) : bool;
|
||||
|
||||
public function handleNetworkSettings(NetworkSettingsPacket $packet) : bool;
|
||||
|
||||
public function handlePlayerAuthInput(PlayerAuthInputPacket $packet) : bool;
|
||||
}
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class PhotoTransferPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -50,7 +49,7 @@ class PhotoTransferPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putString($this->bookId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePhotoTransfer($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class PlaySoundPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -61,7 +60,7 @@ class PlaySoundPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putLFloat($this->pitch);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlaySound($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class PlayStatusPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -61,7 +60,7 @@ class PlayStatusPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putInt($this->status);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlayStatus($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class PlayerActionPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -85,7 +84,7 @@ class PlayerActionPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putVarInt($this->face);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlayerAction($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\InputMode;
|
||||
use pocketmine\network\mcpe\protocol\types\PlayMode;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
@ -159,7 +158,7 @@ class PlayerAuthInputPacket extends DataPacket implements ServerboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlayerAuthInput($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\inventory\ContainerIds;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
@ -59,7 +58,7 @@ class PlayerHotbarPacket extends DataPacket implements ClientboundPacket, Server
|
||||
$out->putBool($this->selectHotbarSlot);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlayerHotbar($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class PlayerInputPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -54,7 +53,7 @@ class PlayerInputPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putBool($this->sneaking);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlayerInput($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\PlayerListEntry;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
@ -115,7 +114,7 @@ class PlayerListPacket extends DataPacket implements ClientboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlayerList($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\SkinData;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use pocketmine\utils\UUID;
|
||||
@ -58,7 +57,7 @@ class PlayerSkinPacket extends DataPacket implements ClientboundPacket, Serverbo
|
||||
$out->putBool($this->skin->isVerified());
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePlayerSkin($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
|
||||
@ -49,7 +48,7 @@ class PurchaseReceiptPacket extends DataPacket implements ServerboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handlePurchaseReceipt($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class RemoveActorPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -48,7 +47,7 @@ class RemoveActorPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putEntityUniqueId($this->entityUniqueId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleRemoveActor($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class RemoveEntityPacket extends DataPacket implements ClientboundPacket{
|
||||
@ -52,7 +51,7 @@ class RemoveEntityPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putUnsignedVarInt($this->uvarint1);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleRemoveEntity($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class RemoveObjectivePacket extends DataPacket implements ClientboundPacket{
|
||||
@ -42,7 +41,7 @@ class RemoveObjectivePacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putString($this->objectiveName);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleRemoveObjective($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class RequestChunkRadiusPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -42,7 +41,7 @@ class RequestChunkRadiusPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putVarInt($this->radius);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleRequestChunkRadius($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function strlen;
|
||||
|
||||
@ -64,7 +63,7 @@ class ResourcePackChunkDataPacket extends DataPacket implements ClientboundPacke
|
||||
$out->putString($this->data);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleResourcePackChunkData($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class ResourcePackChunkRequestPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -46,7 +45,7 @@ class ResourcePackChunkRequestPacket extends DataPacket implements ServerboundPa
|
||||
$out->putLInt($this->chunkIndex);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleResourcePackChunkRequest($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
|
||||
@ -58,7 +57,7 @@ class ResourcePackClientResponsePacket extends DataPacket implements Serverbound
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleResourcePackClientResponse($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackType;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
@ -77,7 +76,7 @@ class ResourcePackDataInfoPacket extends DataPacket implements ClientboundPacket
|
||||
$out->putByte($this->packType);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleResourcePackDataInfo($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackStackEntry;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
@ -94,7 +93,7 @@ class ResourcePackStackPacket extends DataPacket implements ClientboundPacket{
|
||||
$out->putString($this->baseGameVersion);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleResourcePackStack($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackInfoEntry;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
use function count;
|
||||
@ -84,7 +83,7 @@ class ResourcePacksInfoPacket extends DataPacket implements ClientboundPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleResourcePacksInfo($this);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class RespawnPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{
|
||||
@ -63,7 +62,7 @@ class RespawnPacket extends DataPacket implements ClientboundPacket, Serverbound
|
||||
$out->putEntityRuntimeId($this->entityRuntimeId);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleRespawn($this);
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\handler\PacketHandler;
|
||||
use pocketmine\network\mcpe\serializer\NetworkBinaryStream;
|
||||
|
||||
class RiderJumpPacket extends DataPacket implements ServerboundPacket{
|
||||
@ -42,7 +41,7 @@ class RiderJumpPacket extends DataPacket implements ServerboundPacket{
|
||||
$out->putVarInt($this->jumpStrength);
|
||||
}
|
||||
|
||||
public function handle(PacketHandler $handler) : bool{
|
||||
public function handle(PacketHandlerInterface $handler) : bool{
|
||||
return $handler->handleRiderJump($this);
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user