PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\event\EventPriority Class Reference
+ Collaboration diagram for pocketmine\event\EventPriority:

Static Public Member Functions

static fromString (string $name)
 

Public Attributes

const ALL
 
const HIGH = 2
 
const HIGHEST = 1
 
const LOW = 4
 
const LOWEST = 5
 
const MONITOR = 0
 
const NORMAL = 3
 

Detailed Description

List of event priorities

Events will be called in this order: LOWEST -> LOW -> NORMAL -> HIGH -> HIGHEST -> MONITOR

MONITOR events should not change the event outcome or contents

WARNING: If these values are changed, handler sorting in HandlerList::getListenerList() may need to be updated.

Definition at line 38 of file EventPriority.php.

Member Function Documentation

◆ fromString()

static pocketmine\event\EventPriority::fromString ( string $name)
static
Exceptions

InvalidArgumentException

Definition at line 86 of file EventPriority.php.

Member Data Documentation

◆ ALL

◆ HIGH

const pocketmine\event\EventPriority::HIGH = 2

Event call is of high importance

Definition at line 70 of file EventPriority.php.

◆ HIGHEST

const pocketmine\event\EventPriority::HIGHEST = 1

Event call is critical and must have the final say in what happens to the event

Definition at line 75 of file EventPriority.php.

◆ LOW

const pocketmine\event\EventPriority::LOW = 4

Event call is of low importance

Definition at line 61 of file EventPriority.php.

◆ LOWEST

const pocketmine\event\EventPriority::LOWEST = 5

Event call is of very low importance and should be ran first, to allow other plugins to further customise the outcome

Definition at line 57 of file EventPriority.php.

◆ MONITOR

const pocketmine\event\EventPriority::MONITOR = 0

Event is listened to purely for monitoring the outcome of an event.

No modifications to the event should be made under this priority

Definition at line 81 of file EventPriority.php.

◆ NORMAL

const pocketmine\event\EventPriority::NORMAL = 3

Event call is neither important or unimportant, and may be ran normally. This is the default priority.

Definition at line 66 of file EventPriority.php.


The documentation for this class was generated from the following file: