mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Moved network ids to constants, improved some entity methods, more performance
This commit is contained in:
@ -25,17 +25,12 @@ namespace pocketmine\network\protocol;
|
||||
|
||||
|
||||
class DropItemPacket extends DataPacket{
|
||||
public static $pool = [];
|
||||
public static $next = 0;
|
||||
const NETWORK_ID = Info::DROP_ITEM_PACKET;
|
||||
|
||||
public $eid;
|
||||
public $unknown;
|
||||
public $item;
|
||||
|
||||
public function pid(){
|
||||
return Info::DROP_ITEM_PACKET;
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
$this->eid = $this->getLong();
|
||||
$this->unknown = $this->getByte();
|
||||
|
Reference in New Issue
Block a user