PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (Block $block, private BlockTransaction $transaction, private ?Player $player) | |
call () | |
getBlock () | |
getEventName () | |
getPlayer () | |
getTransaction () | |
isCancelled () | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
string | $eventName = null |
Called when structures such as Saplings or Bamboo grow. These types of plants tend to change multiple blocks at once upon growing.
Definition at line 36 of file StructureGrowEvent.php.
pocketmine\event\block\StructureGrowEvent::__construct | ( | Block | $block, |
private BlockTransaction | $transaction, | ||
private ?Player | $player ) |
Definition at line 39 of file StructureGrowEvent.php.
|
inherited |
|
inherited |
Definition at line 37 of file BlockEvent.php.
pocketmine\event\block\StructureGrowEvent::getPlayer | ( | ) |
It returns the player which grows the structure. It returns null when the structure grows by itself.
Definition at line 55 of file StructureGrowEvent.php.
pocketmine\event\block\StructureGrowEvent::getTransaction | ( | ) |
Definition at line 47 of file StructureGrowEvent.php.
|
staticinherited |
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
|
protectedinherited |