| 1 | <?php |
||
| 15 | class BreakCoreEvent extends PlayerEvent implements Cancellable |
||
| 16 | { |
||
| 17 | public const RED = 0; |
||
| 18 | public const BLUE = 1; |
||
| 19 | |||
| 20 | /** @var int $team */ |
||
| 21 | private $team; |
||
| 22 | /** @var int $damage */ |
||
| 23 | private $damage; |
||
| 24 | |||
| 25 | public function __construct(Player $player, int $team, int $damage = 1) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | public function getTeam(): int |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | public function getDamage(): int |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param int $damage |
||
| 50 | */ |
||
| 51 | public function setDamage(int $damage): void |
||
| 55 | } |
||
| 56 |