PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\block\utils\CropGrowthHelper Class Reference
+ Collaboration diagram for pocketmine\block\utils\CropGrowthHelper:

Static Public Member Functions

static calculateMultiplier (Block $block)
 
static canGrow (Block $block)
 
static hasEnoughLight (Block $block, int $minLevel=self::MIN_LIGHT_LEVEL)
 

Detailed Description

Definition at line 30 of file CropGrowthHelper.php.

Member Function Documentation

◆ 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

Definition at line 115 of file CropGrowthHelper.php.

◆ hasEnoughLight()

static pocketmine\block\utils\CropGrowthHelper::hasEnoughLight ( Block $block,
int $minLevel = self::MIN_LIGHT_LEVEL )
static

Definition at line 107 of file CropGrowthHelper.php.


The documentation for this class was generated from the following file: