PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
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 |