Definition at line 30 of file CropGrowthHelper.php.
◆ calculateMultiplier()
static pocketmine\block\utils\CropGrowthHelper::calculateMultiplier |
( |
Block |
$block | ) |
|
|
static |
Returns the speed at which this crop will grow, depending on its surroundings. The default is once every 26 random ticks.
Things which influence this include nearby farmland (bonus for hydrated farmland) and the position of other nearby crops of the same type (nearby crops of the same type will negatively influence growth speed unless planted in rows and properly spaced apart).
Definition at line 53 of file CropGrowthHelper.php.
◆ canGrow()
static pocketmine\block\utils\CropGrowthHelper::canGrow |
( |
Block |
$block | ) |
|
|
static |
◆ hasEnoughLight()
static pocketmine\block\utils\CropGrowthHelper::hasEnoughLight |
( |
Block |
$block, |
|
|
int |
$minLevel = self::MIN_LIGHT_LEVEL |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: