PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (private int $memory, private int $memoryLimit, private bool $isGlobal=false, private int $triggerCount=0) | |
call () | |
getEventName () | |
getMemory () | |
getMemoryFreed () | |
getMemoryLimit () | |
getTriggerCount () | |
isGlobal () | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
string | $eventName = null |
Called when the server is in a low-memory state as defined by the properties Plugins should free caches or other non-essential data.
Definition at line 32 of file LowMemoryEvent.php.
pocketmine\event\server\LowMemoryEvent::__construct | ( | private int | $memory, |
private int | $memoryLimit, | ||
private bool | $isGlobal = false, | ||
private int | $triggerCount = 0 ) |
Definition at line 33 of file LowMemoryEvent.php.
|
inherited |
pocketmine\event\server\LowMemoryEvent::getMemory | ( | ) |
Returns the memory usage at the time of the event call (in bytes)
Definition at line 43 of file LowMemoryEvent.php.
pocketmine\event\server\LowMemoryEvent::getMemoryFreed | ( | ) |
Amount of memory already freed
Definition at line 68 of file LowMemoryEvent.php.
pocketmine\event\server\LowMemoryEvent::getMemoryLimit | ( | ) |
Returns the memory limit defined (in bytes)
Definition at line 50 of file LowMemoryEvent.php.
pocketmine\event\server\LowMemoryEvent::getTriggerCount | ( | ) |
Returns the times this event has been called in the current low-memory state
Definition at line 57 of file LowMemoryEvent.php.
|
staticinherited |
pocketmine\event\server\LowMemoryEvent::isGlobal | ( | ) |
Definition at line 61 of file LowMemoryEvent.php.
|
protectedinherited |