BlockSpreadEvent: document poorly-named constructor parameters

This commit is contained in:
Dylan K. Taylor 2023-06-03 17:07:50 +01:00
parent 4e031e7b3e
commit 40be564689
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -30,6 +30,11 @@ use pocketmine\block\Block;
*/
class BlockSpreadEvent extends BaseBlockChangeEvent{
/**
* @param Block $block Block being replaced (TODO: rename this)
* @param Block $source Origin of the spread
* @param Block $newState Replacement block
*/
public function __construct(
Block $block,
private Block $source,