41 private bool $blockBreaking =
true;
43 public function __construct(
45 protected float $radius
48 throw new \InvalidArgumentException(
"Explosion radius must be positive");
53 public function getRadius() :
float{
57 public function setRadius(
float $radius) :
void{
59 throw new \InvalidArgumentException(
"Explosion radius must be positive");
61 $this->radius = $radius;
64 public function isBlockBreaking() :
bool{
65 return $this->blockBreaking;
68 public function setBlockBreaking(
bool $affectsBlocks) :
void{
69 $this->blockBreaking = $affectsBlocks;