mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
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]
This commit is contained in:
parent
ee60a7bc36
commit
247875e3d5
@ -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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function explodeA() : bool{
|
public function explodeA() : bool{
|
||||||
@ -148,6 +151,12 @@ class Explosion{
|
|||||||
return true;
|
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{
|
public function explodeB() : bool{
|
||||||
$send = [];
|
$send = [];
|
||||||
$updateBlocks = [];
|
$updateBlocks = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user