mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Moved Entity::get() to Level::getEntity() and removed Entity::getAll()
This commit is contained in:
@@ -118,14 +118,6 @@ abstract class Entity extends Position implements Metadatable{
|
||||
|
||||
public $closed;
|
||||
|
||||
public static function get($entityID){
|
||||
return isset(Entity::$list[$entityID]) ? Entity::$list[$entityID] : false;
|
||||
}
|
||||
|
||||
public static function getAll(){
|
||||
return Entity::$list;
|
||||
}
|
||||
|
||||
|
||||
public function __construct(Level $level, Compound $nbt){
|
||||
$this->id = Entity::$entityCount++;
|
||||
|
Reference in New Issue
Block a user