From 247875e3d5956c8436624e3ad28b79377f930916 Mon Sep 17 00:00:00 2001 From: Dylan T Date: Mon, 7 Oct 2019 09:44:17 +0100 Subject: [PATCH] Explosion: add documentation for explodeA() and explodeB() these functions really ought to be renamed, or possibly redesigned entirely. However, that's no task for a patch version. [ci skip] --- src/pocketmine/level/Explosion.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pocketmine/level/Explosion.php b/src/pocketmine/level/Explosion.php index 80772cbe8..e234fdd3e 100644 --- a/src/pocketmine/level/Explosion.php +++ b/src/pocketmine/level/Explosion.php @@ -89,6 +89,9 @@ class Explosion{ } /** + * Calculates which blocks will be destroyed by this explosion. If explodeB() is called without calling this, no blocks + * will be destroyed. + * * @return bool */ public function explodeA() : bool{ @@ -148,6 +151,12 @@ class Explosion{ return true; } + /** + * Executes the explosion's effects on the world. This includes destroying blocks (if any), harming and knocking back entities, + * and creating sounds and particles. + * + * @return bool + */ public function explodeB() : bool{ $send = []; $updateBlocks = [];