mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Network: Deprecate some garbage
Deprecations on a patch version breaks release protocol, but I don't care at this point. Nobody should have been using this shit anyway.
This commit is contained in:
parent
75a0627bf2
commit
f7de6eb59f
@ -26,7 +26,8 @@ namespace pocketmine\event\server;
|
||||
use pocketmine\network\SourceInterface;
|
||||
|
||||
/**
|
||||
* Called when a network interface crashes, with relevant crash information.
|
||||
* Never called. Should never have come into this world. Nothing to see here.
|
||||
* @deprecated
|
||||
*/
|
||||
class NetworkInterfaceCrashEvent extends NetworkInterfaceEvent{
|
||||
/**
|
||||
|
@ -84,10 +84,14 @@ class Network{
|
||||
|
||||
public function processInterfaces(){
|
||||
foreach($this->interfaces as $interface){
|
||||
$this->processInterface($interface);
|
||||
$interface->process();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param SourceInterface $interface
|
||||
*/
|
||||
public function processInterface(SourceInterface $interface) : void{
|
||||
$interface->process();
|
||||
}
|
||||
|
@ -71,6 +71,9 @@ interface SourceInterface{
|
||||
|
||||
public function shutdown();
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public function emergencyShutdown();
|
||||
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
||||
|
||||
public function start(){
|
||||
$this->server->getTickSleeper()->addNotifier($this->sleeper, function() : void{
|
||||
$this->server->getNetwork()->processInterface($this);
|
||||
$this->process();
|
||||
});
|
||||
$this->rakLib->start(PTHREADS_INHERIT_CONSTANTS); //HACK: MainLogger needs constants for exception logging
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user