| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 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 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 |