Vintagestory.GameContent.BEBehaviorFruiting.PlantHealth C# (CSharp) Method

PlantHealth() private method

private PlantHealth ( ) : double
return double
        private double PlantHealth()
        {
            BlockPos posBelow = Blockentity.Pos.DownCopy();
            if (Blockentity.Api.World.BlockAccessor.GetBlockEntity(posBelow) is BlockEntityFarmland bef)
            {
                return bef.GetGrowthRate();
            }

            return 1.0;
        }