mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Exploded Player->handleDataPacket() into 70+ methods
This commit is contained in:
@ -24,6 +24,8 @@ namespace pocketmine\network\protocol;
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
|
||||
use pocketmine\network\PocketEditionNetworkSession;
|
||||
|
||||
class ContainerClosePacket extends DataPacket{
|
||||
const NETWORK_ID = Info::CONTAINER_CLOSE_PACKET;
|
||||
|
||||
@ -38,4 +40,7 @@ class ContainerClosePacket extends DataPacket{
|
||||
$this->putByte($this->windowid);
|
||||
}
|
||||
|
||||
public function handle(PocketEditionNetworkSession $session) : bool{
|
||||
return $session->handleContainerClose($this);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user