mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Moved network ids to constants, improved some entity methods, more performance
This commit is contained in:
@ -25,15 +25,10 @@ namespace pocketmine\network\protocol;
|
||||
|
||||
|
||||
class ContainerClosePacket extends DataPacket{
|
||||
public static $pool = [];
|
||||
public static $next = 0;
|
||||
const NETWORK_ID = Info::CONTAINER_CLOSE_PACKET;
|
||||
|
||||
public $windowid;
|
||||
|
||||
public function pid(){
|
||||
return Info::CONTAINER_CLOSE_PACKET;
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
$this->windowid = $this->getByte();
|
||||
}
|
||||
|
Reference in New Issue
Block a user