Skip to content

CancellableTrait ​

trait · pocketmine\event\CancellableTrait · source

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.

Methods ​

cancel() ​

php
public function cancel() : void

isCancelled() ​

php
public function isCancelled() : bool

uncancel() ​

php
public function uncancel() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.