FarmlandHydrationChangeEvent
Extends BlockEvent
Implements Cancellable
Called when farmland hydration is updated.
Methods
__construct()
php
public function __construct(\pocketmine\block\Block $block, int $oldHydration, int $newHydration)getNewHydration()
php
public function getNewHydration() : intgetOldHydration()
php
public function getOldHydration() : intsetNewHydration()
php
public function setNewHydration(int $hydration) : void