PocketMine-MP 5.17.1 git-df4ada81e5d74a14046f27cf44a37dcee69d657e
pocketmine\block\utils\BlockEventHelper Class Reference
+ Collaboration diagram for pocketmine\block\utils\BlockEventHelper:

Static Public Member Functions

static die (Block $oldState, Block $newState)
 
static form (Block $oldState, Block $newState, Block $cause)
 
static grow (Block $oldState, Block $newState, ?Player $causingPlayer)
 
static melt (Block $oldState, Block $newState)
 
static spread (Block $oldState, Block $newState, Block $source)
 

Detailed Description

Helper class to call block changing events and apply the results to the world. TODO: try to further reduce the amount of code duplication here - while this is much better than before, it's still very repetitive.

Definition at line 39 of file BlockEventHelper.php.

Member Function Documentation

◆ die()

static pocketmine\block\utils\BlockEventHelper::die ( Block  $oldState,
Block  $newState 
)
static

Definition at line 101 of file BlockEventHelper.php.

◆ form()

static pocketmine\block\utils\BlockEventHelper::form ( Block  $oldState,
Block  $newState,
Block  $cause 
)
static

Definition at line 71 of file BlockEventHelper.php.

◆ grow()

static pocketmine\block\utils\BlockEventHelper::grow ( Block  $oldState,
Block  $newState,
?Player  $causingPlayer 
)
static

Definition at line 41 of file BlockEventHelper.php.

◆ melt()

static pocketmine\block\utils\BlockEventHelper::melt ( Block  $oldState,
Block  $newState 
)
static

Definition at line 86 of file BlockEventHelper.php.

◆ spread()

static pocketmine\block\utils\BlockEventHelper::spread ( Block  $oldState,
Block  $newState,
Block  $source 
)
static

Definition at line 56 of file BlockEventHelper.php.


The documentation for this class was generated from the following file: