Move Event cancellable parts to trait

This commit is contained in:
Dylan K. Taylor
2019-01-16 22:14:25 +00:00
parent 2e7e56de1e
commit 38afe22b79
64 changed files with 225 additions and 35 deletions

View File

@ -25,6 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\block\Block;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
@ -32,6 +33,8 @@ use pocketmine\Player;
* @allowHandle
*/
abstract class PlayerBucketEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;
/** @var Block */
private $blockClicked;
/** @var int */