PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
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.