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

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\math\Vector3;
use pocketmine\Player;
@ -32,6 +33,7 @@ use pocketmine\Player;
* Called when a player uses its held item, for example when throwing a projectile.
*/
class PlayerItemUseEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;
/** @var Item */
private $item;