mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 10:49:10 +00:00
Remove useless crap from ChunkLoader interface
these methods are not used anywhere and are unnecessary extra baggage for any implementation.
This commit is contained in:
parent
90f80782d4
commit
6fcb221453
@ -3352,8 +3352,4 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
public function getLoaderId() : int{
|
||||
return $this->loaderId;
|
||||
}
|
||||
|
||||
public function isLoaderActive() : bool{
|
||||
return $this->isConnected();
|
||||
}
|
||||
}
|
||||
|
@ -47,18 +47,6 @@ interface ChunkLoader{
|
||||
*/
|
||||
public function getLoaderId() : int;
|
||||
|
||||
/**
|
||||
* Returns if the chunk loader is currently active
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isLoaderActive() : bool;
|
||||
|
||||
/**
|
||||
* @return Position
|
||||
*/
|
||||
public function getPosition();
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
@ -69,11 +57,6 @@ interface ChunkLoader{
|
||||
*/
|
||||
public function getZ();
|
||||
|
||||
/**
|
||||
* @return Level
|
||||
*/
|
||||
public function getLevel();
|
||||
|
||||
/**
|
||||
* This method will be called when a Chunk is replaced by a new one
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user