PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (public Position $source, public float $radius, private Entity|Block|null $what=null) | |
explodeA () | |
explodeB () | |
Public Attributes | |
array | $affectedBlocks = [] |
float | $stepLen = 0.3 |
World | $world |
Definition at line 50 of file Explosion.php.
pocketmine\world\Explosion::__construct | ( | public Position | $source, |
public float | $radius, | ||
private Entity|Block|null | $what = null ) |
Definition at line 60 of file Explosion.php.
pocketmine\world\Explosion::explodeA | ( | ) |
Calculates which blocks will be destroyed by this explosion. If explodeB() is called without calling this, no blocks will be destroyed.
Definition at line 80 of file Explosion.php.
pocketmine\world\Explosion::explodeB | ( | ) |
Executes the explosion's effects on the world. This includes destroying blocks (if any), harming and knocking back entities, and creating sounds and particles.
Definition at line 148 of file Explosion.php.
array pocketmine\world\Explosion::$affectedBlocks = [] |
Definition at line 55 of file Explosion.php.
float pocketmine\world\Explosion::$stepLen = 0.3 |
Definition at line 56 of file Explosion.php.
World pocketmine\world\Explosion::$world |
Definition at line 52 of file Explosion.php.