PocketMine-MP 5.17.1 git-df4ada81e5d74a14046f27cf44a37dcee69d657e
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.