Class BlockCropProperties
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
[ProtoContract]
public class BlockCropProperties
- Inheritance
-
BlockCropProperties
- Inherited Members
- Extension Methods
Fields
Behaviors
Allows customization of crop growth behavior. BlockEntityFarmland calls methods on all behaviors to allow greater control.
public CropBehavior[] Behaviors
Field Value
ColdDamageBelow
[ProtoMember(7)]
public float ColdDamageBelow
Field Value
ColdDamageRipeMul
[ProtoMember(9)]
public float ColdDamageRipeMul
Field Value
DamageGrowthStuntMul
[ProtoMember(8)]
public float DamageGrowthStuntMul
Field Value
GrowthStages
Amount of growth stages this crop has
[ProtoMember(3)]
public int GrowthStages
Field Value
HarvestGrowthStageLoss
When multiple harvets is true, this is the amount of growth stages the crop should go back when harvested
[ProtoMember(6)]
public int HarvestGrowthStageLoss
Field Value
HeatDamageAbove
[ProtoMember(10)]
public float HeatDamageAbove
Field Value
MultipleHarvests
If true, the player may harvests from the crop multiple times
[ProtoMember(5)]
public bool MultipleHarvests
Field Value
NutrientConsumption
Total amount of nutrient consumed to reach full maturity. (100 is the maximum available for farmland)
[ProtoMember(2)]
public float NutrientConsumption
Field Value
RequiredNutrient
Which nutrient category this crop requires to grow
[ProtoMember(1)]
public EnumSoilNutrient RequiredNutrient
Field Value
TotalGrowthDays
Total time in ingame days required for the crop to reach full maturity assuming full nutrient levels
[ProtoMember(4)]
public float TotalGrowthDays
Field Value
TotalGrowthMonths
Total time in ingame months required for the crop to reach full maturity assuming full nutrient levels
[ProtoMember(11)]
public float TotalGrowthMonths