| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Inheritance diagram for pocketmine\event\block\StructureGrowEvent:
 Collaboration diagram for pocketmine\event\block\StructureGrowEvent: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 |