PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Classes implementing this interface can be registered to receive called Events.
A function in a Listener class must meet the following criteria to be registered as an event handler:
@allowHandle
annotationEvent handlers do not have to have any particular name - they are detected using reflection. They SHOULD NOT return any values (but this is not currently enforced).
Functions which meet the criteria can have the following annotations in their doc comments:
@notHandler
: Marks a function as NOT being an event handler. Only needed if the function meets the above criteria.@handleCancelled
: Cancelled events will STILL invoke this handler.@priority <PRIORITY>
: Sets the priority at which this event handler will receive events. Example: @priority HIGHEST
Definition at line 54 of file Listener.php.