PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\event Namespace Reference

Namespaces

namespace  block
 
namespace  entity
 
namespace  inventory
 
namespace  player
 
namespace  plugin
 
namespace  server
 
namespace  world
 

Classes

interface  Cancellable
 
class  Event
 
class  EventPriority
 
class  HandlerList
 
class  HandlerListManager
 
interface  Listener
 
class  ListenerMethodTags
 
class  RegisteredListener
 
class  RegisteredListenerCache
 

Functions

 cancel ()
 
 isCancelled ()
 
 uncancel ()
 

Variables

trait CancellableTrait
 

Detailed Description

Event related classes

Function Documentation

◆ cancel()

pocketmine\event\cancel ( )

Definition at line 42 of file CancellableTrait.php.

◆ isCancelled()

pocketmine\event\isCancelled ( )

Definition at line 38 of file CancellableTrait.php.

◆ uncancel()

pocketmine\event\uncancel ( )

Definition at line 46 of file CancellableTrait.php.

Variable Documentation

◆ CancellableTrait

trait pocketmine::event\CancellableTrait
Initial value:
{
private $isCancelled = false

This trait provides a basic boolean-setter-style implementation for Cancellable to reduce boilerplate. The precise meaning of setCancelled is subject to definition by the class using this trait.

Implementors of Cancellable are not required to use this trait.

See also
Cancellable

Definition at line 34 of file CancellableTrait.php.