mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Remove some deprecated methods
This commit is contained in:
parent
e035be8498
commit
605e7e08ed
@ -556,14 +556,6 @@ class Server{
|
|||||||
return $this->getConfigInt("spawn-protection", 16);
|
return $this->getConfigInt("spawn-protection", 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function getAllowFlight() : bool{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -631,16 +631,6 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$this->globalPackets[] = $packet;
|
$this->globalPackets[] = $packet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
* @see Level::broadcastGlobalPacket()
|
|
||||||
*
|
|
||||||
* @param DataPacket $packet
|
|
||||||
*/
|
|
||||||
public function addGlobalPacket(DataPacket $packet) : void{
|
|
||||||
$this->globalPackets[] = $packet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function registerChunkLoader(ChunkLoader $loader, int $chunkX, int $chunkZ, bool $autoLoad = true){
|
public function registerChunkLoader(ChunkLoader $loader, int $chunkX, int $chunkZ, bool $autoLoad = true){
|
||||||
$hash = $loader->getLoaderId();
|
$hash = $loader->getLoaderId();
|
||||||
|
|
||||||
|
@ -524,18 +524,6 @@ class PluginManager{
|
|||||||
$this->fileAssociations = [];
|
$this->fileAssociations = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Calls an event
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
* @see Event::call()
|
|
||||||
*
|
|
||||||
* @param Event $event
|
|
||||||
*/
|
|
||||||
public function callEvent(Event $event){
|
|
||||||
$event->call();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers all the events in the given Listener class
|
* Registers all the events in the given Listener class
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user