diff --git a/src/CloseFormPacket.php b/src/ClientboundCloseFormPacket.php similarity index 82% rename from src/CloseFormPacket.php rename to src/ClientboundCloseFormPacket.php index d4972ea5..c6eb8e34 100644 --- a/src/CloseFormPacket.php +++ b/src/ClientboundCloseFormPacket.php @@ -16,8 +16,8 @@ use pocketmine\network\mcpe\protocol\serializer\PacketSerializer; -class CloseFormPacket extends DataPacket implements ClientboundPacket{ - public const NETWORK_ID = ProtocolInfo::CLOSE_FORM_PACKET; +class ClientboundCloseFormPacket extends DataPacket implements ClientboundPacket{ + public const NETWORK_ID = ProtocolInfo::CLIENTBOUND_CLOSE_FORM_PACKET; /** * @generate-create-func @@ -27,11 +27,11 @@ public static function create() : self{ } protected function decodePayload(PacketSerializer $in) : void{ - + //No payload } protected function encodePayload(PacketSerializer $out) : void{ - + //No payload } public function handle(PacketHandlerInterface $handler) : bool{ diff --git a/src/PacketHandlerDefaultImplTrait.php b/src/PacketHandlerDefaultImplTrait.php index 1dc7c199..d8401c92 100644 --- a/src/PacketHandlerDefaultImplTrait.php +++ b/src/PacketHandlerDefaultImplTrait.php @@ -810,7 +810,7 @@ public function handleAwardAchievement(AwardAchievementPacket $packet) : bool{ return false; } - public function handleCloseForm(CloseFormPacket $packet) : bool{ + public function handleCloseForm(ClientboundCloseFormPacket $packet) : bool{ return false; } } diff --git a/src/PacketHandlerInterface.php b/src/PacketHandlerInterface.php index f0c1dee4..de505a05 100644 --- a/src/PacketHandlerInterface.php +++ b/src/PacketHandlerInterface.php @@ -412,5 +412,5 @@ public function handleSetHud(SetHudPacket $packet) : bool; public function handleAwardAchievement(AwardAchievementPacket $packet) : bool; - public function handleCloseForm(CloseFormPacket $packet) : bool; + public function handleCloseForm(ClientboundCloseFormPacket $packet) : bool; } diff --git a/src/PacketPool.php b/src/PacketPool.php index 1ac92148..8803dd18 100644 --- a/src/PacketPool.php +++ b/src/PacketPool.php @@ -230,7 +230,7 @@ public function __construct(){ $this->registerPacket(new SetPlayerInventoryOptionsPacket()); $this->registerPacket(new SetHudPacket()); $this->registerPacket(new AwardAchievementPacket()); - $this->registerPacket(new CloseFormPacket()); + $this->registerPacket(new ClientboundCloseFormPacket()); } public function registerPacket(Packet $packet) : void{ diff --git a/src/ProtocolInfo.php b/src/ProtocolInfo.php index 1c521d56..0ad7a3f2 100644 --- a/src/ProtocolInfo.php +++ b/src/ProtocolInfo.php @@ -269,6 +269,6 @@ private function __construct(){ public const SET_PLAYER_INVENTORY_OPTIONS_PACKET = 0x133; public const SET_HUD_PACKET = 0x134; public const AWARD_ACHIEVEMENT_PACKET = 0x135; - public const CLOSE_FORM_PACKET = 0x136; + public const CLIENTBOUND_CLOSE_FORM_PACKET = 0x136; }