BasicFertilizer
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import mods.botanypotstweaker.fertilizer.BasicFertilizer;
Extends
BasicFertilizer extends Fertilizer
.
Implements
BasicFertilizer
implements the following interfaces:
Members
Getter
Gets the crop that this fertilizer works with.script.zs
// BasicFertilizer.cropIngredient as IIngredientmyBasicFertilizer.cropIngredient
Return Type:
IIngredient
Getter
Gets the actual fertilizer ingredient, held by the hand.script.zs
// BasicFertilizer.ingredient as IIngredientmyBasicFertilizer.ingredient
Return Type:
IIngredient
Getter
Gets the maximum amount of ticks that will be added to the growthscript.zs
// BasicFertilizer.maxTicks as intmyBasicFertilizer.maxTicks
Return Type:
int
Getter
Gets the minimum amount of ticks that will be added to the growthscript.zs
// BasicFertilizer.minTicks as intmyBasicFertilizer.minTicks
Return Type:
int
static of(id as ResourceLocation, ingredient as IIngredient, minTicks as int, maxTicks as int, cropIngredient as IIngredient = null, soilIngredient as IIngredient = null) as BasicFertilizer
Creates a new BasicFertilizerscript.zs
// BasicFertilizer.of(id as ResourceLocation, ingredient as IIngredient, minTicks as int, maxTicks as int, cropIngredient as IIngredient = null, soilIngredient as IIngredient = null) as BasicFertilizer;BasicFertilizer.of(<resource:crafttweaker:fertilizer_test>, <item:minecraft:diamond>, 20, 40, null, <item:minecraft:dirt>);
Parameters:
minTicks: int
Type: int
- The minimum amount of ticks that the fertilizer applies. maxTicks: int
Type: int
- The maximum amount of ticks that the fertilizer applies. cropIngredient: IIngredient
(optional) Type: IIngredient
- The ingredient for the crop that the fertilizer affects.
Default Value: null
soilIngredient: IIngredient
(optional) Type: IIngredient
- The ingredient for the soil that the fertilizer affects.
Default Value: null
Return Type:
BasicFertilizer
Getter
Gets the soil that this fertilizer works with.script.zs
// BasicFertilizer.soilIngredient as IIngredientmyBasicFertilizer.soilIngredient
Return Type:
IIngredient