PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
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: