Skip to content

FarmlandHydrationChangeEvent ​

class · pocketmine\event\block\FarmlandHydrationChangeEvent · source

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() : int

getOldHydration() ​

php
public function getOldHydration() : int

setNewHydration() ​

php
public function setNewHydration(int $hydration) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.