|
PocketMine-MP 5.37.2 git-e507eb5e50da3ead3ae88ed2324df21e75820019
|
Inheritance diagram for pocketmine\event\server\LowMemoryEvent:
Collaboration diagram for pocketmine\event\server\LowMemoryEvent: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 33 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 34 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 44 of file LowMemoryEvent.php.
| pocketmine\event\server\LowMemoryEvent::getMemoryFreed | ( | ) |
Amount of memory already freed
Definition at line 69 of file LowMemoryEvent.php.
| pocketmine\event\server\LowMemoryEvent::getMemoryLimit | ( | ) |
Returns the memory limit defined (in bytes)
Definition at line 51 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 58 of file LowMemoryEvent.php.
|
staticinherited |
| pocketmine\event\server\LowMemoryEvent::isGlobal | ( | ) |
Definition at line 62 of file LowMemoryEvent.php.
|
protectedinherited |