PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
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.