BasicPotInteraction
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.potinteraction.BasicPotInteraction;
Extends
BasicPotInteraction extends PotInteraction
.
Implements
BasicPotInteraction
implements the following interfaces:
Members
Getter
Checks if this interaction damages the held itemscript.zs
// BasicPotInteraction.damageHeld as boolmyBasicPotInteraction.damageHeld
Return Type:
bool
Getter
Gets a list of extra items that will drop when this interaction happens.script.zs
myBasicPotInteraction.extraDrops
Return Type:
IItemStack[]
Getter
Gets an ingredient that defines what causes this interaction to happen.script.zs
// BasicPotInteraction.heldTest as IIngredientmyBasicPotInteraction.heldTest
Return Type:
IIngredient
Getter
Gets the seed stack after the interaction changes it, if the interaction doesn't change it, this will return nullscript.zs
// BasicPotInteraction.newSeedStack as IItemStackmyBasicPotInteraction.newSeedStack
Return Type:
IItemStack
Getter
Gets the soil stack after the interaction changes it, if the interaction doesn't change it, this will return nullscript.zs
// BasicPotInteraction.newSoilStack as IItemStackmyBasicPotInteraction.newSoilStack
Return Type:
IItemStack
static of(id as ResourceLocation, heldTest as IIngredient, damageHeld as bool, soilTest as IIngredient = null, seedTest as IIngredient = null, newSoilStack as IItemStack = null, newSeedStack as IItemStack = null, sound as Sound = null, extraDrops as IItemStack[] = [] as crafttweaker.api.item.IItemStack[]) as BasicPotInteraction
Creates a new PotInteractionscript.zs
// BasicPotInteraction.of(id as ResourceLocation, heldTest as IIngredient, damageHeld as bool, soilTest as IIngredient = null, seedTest as IIngredient = null, newSoilStack as IItemStack = null, newSeedStack as IItemStack = null, sound as Sound = null, extraDrops as IItemStack[] = [] as crafttweaker.api.item.IItemStack[]) as BasicPotInteraction;BasicPotInteraction.of(<resource:crafttweaker:interaction_test>, <item:minecraft:diamond>, false, null, null, null, <item:minecraft:iron_ingot>, Sound.of(<soundevent:minecraft:ambient.basalt_deltas.additions>, <constant:minecraft:sound/source:neutral>, 1,1), [<item:minecraft:stick>]);
Parameters:
damageHeld: bool
Type: bool
- Whether the held item should be damaged during the interaction. soilTest: IIngredient
(optional) Type: IIngredient
- What soil does this interaction happen on.
Default Value: null
seedTest: IIngredient
(optional) Type: IIngredient
- What seed is this interaction for
Default Value: null
newSoilStack: IItemStack
(optional) Type: IItemStack
- The new soil stack to replace the current soil.
Default Value: null
newSeedStack: IItemStack
(optional) Type: IItemStack
- The new seed stack to replace the current seed.
Default Value: null
extraDrops: IItemStack[]
(optional) Type: IItemStack[]
- Additional items to drop during the interaction.
Default Value: [] as crafttweaker.api.item.IItemStack[]
Return Type:
BasicPotInteraction
Getter
Gets an ingredient that defines which seeds this interaction can work with.script.zs
// BasicPotInteraction.seedTest as IIngredientmyBasicPotInteraction.seedTest
Return Type:
IIngredient
Getter
Gets an ingredient that defines which soils this interaction can work with.script.zs
// BasicPotInteraction.soilTest as IIngredientmyBasicPotInteraction.soilTest
Return Type:
IIngredient