IIngredientList
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 crafttweaker.api.ingredient.type.IIngredientList;Implements
IIngredientList
implements the following interfaces:
IIngredient,CommandStringDisplayable
Constructors
new IIngredientList(myIIngredient[]);Parameters:
ingredients: IIngredient[] Type: IIngredient[] Operators
myIIngredient in myIIngredientListParameters:
Return Type:
bool
// (IIngredientList * (amount as int)) as IIngredientWithAmountmyIIngredientList * myIntParameters:
amount: int Type: int
Return Type:
IIngredientWithAmount
Members
Please use Item Components instead.
// IIngredientList.addGlobalAttributeModifier(attribute as Attribute, id as ResourceLocation, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[]);myIIngredientList.addGlobalAttributeModifier(myAttribute, myResourceLocation, myDouble, myOperation, myEquipmentSlot[]);Parameters:
id: ResourceLocation Type: ResourceLocation value: double Type: double operation: AttributeOperation Type: AttributeOperation slotTypes: EquipmentSlot[] Type: EquipmentSlot[] myIIngredientList.asIIngredientWithAmount();
Return Type:
IIngredientWithAmount
// IIngredientList as IIngredientWithAmountmyIIngredientList as IIngredientWithAmount
Return Type:
IIngredientWithAmount
// IIngredientList.burnTime = (time as int);myIIngredientList.burnTime = myInt;Parameters:
time: int Type: int
- the new burn time // IIngredientList.burnTime(time as int);myIIngredientList.burnTime(500);Parameters:
time: int Type: int
- the new burn time // IIngredientList.clearTooltip(leaveName as bool = false);myIIngredientList.clearTooltip(myBool);Parameters:
leaveName: bool (optional) Type: bool
Default Value: false
myIIngredientList.contains((<item:minecraft:iron_ingot> | <item:minecraft:gold_ingot>));Parameters:
Return Type:
bool
// IIngredientList.modifyShiftTooltip(shiftedFunction as ITooltipFunction, unshiftedFunction as ITooltipFunction = null);myIIngredientList.modifyShiftTooltip(myITooltipFunction, myITooltipFunction);Parameters:
shiftedFunction: ITooltipFunction Type: ITooltipFunction myIIngredientList.modifyTooltip(myITooltipFunction);Parameters:
function: ITooltipFunction Type: ITooltipFunction myIIngredientList.mul(myInt);Parameters:
amount: int Type: int
Return Type:
IIngredientWithAmount
myIIngredientList.onlyDamagedAtLeast(myInt);Parameters:
minDamage: int Type: int
Return Type:
IIngredient
myIIngredientList.onlyDamagedAtMost(myInt);Parameters:
maxDamage: int Type: int
Return Type:
IIngredient
// IIngredientList.onlyIf(uid as string, function as function(t as IItemStack) as bool = null) as IIngredient;myIIngredientList.onlyIf(myString, myPredicate);Parameters:
uid: string Type: string function: function(t as IItemStack) as bool (optional) Type: function(t as IItemStack) as bool
Default Value: null
Return Type:
IIngredient
Please use Item Components instead.
myIIngredientList.removeGlobalAttribute(myAttribute, myEquipmentSlot[]);Parameters:
slotTypes: EquipmentSlot[] Type: EquipmentSlot[] Please use Item Components instead.
myIIngredientList.removeGlobalAttributeModifier(myString, myEquipmentSlot[]);Parameters:
uuid: string Type: string slotTypes: EquipmentSlot[] Type: EquipmentSlot[] Please use Item Components instead.
myIIngredientList.removeGlobalAttributeModifier(myUUID, myEquipmentSlot[]);Parameters:
uuid: UUID Type: UUID slotTypes: EquipmentSlot[] Type: EquipmentSlot[] // IIngredientList.removeTooltip(regex as string);myIIngredientList.removeTooltip(myString);Parameters:
regex: string Type: string // IIngredientList.transformCustom(uid as string, function as function(r as IItemStack) as IItemStack = null) as IIngredient;myIIngredientList.transformCustom(myString, myFunction);Parameters:
uid: string Type: string function: function(r as IItemStack) as IItemStack (optional) Type: function(r as IItemStack) as IItemStack
Default Value: null
Return Type:
IIngredient
myIIngredientList.transformDamage(myInt);Parameters:
amount: int (optional) Type: int
Default Value: 1
Return Type:
IIngredient
myIIngredientList.transformReplace(myIItemStack);Parameters:
replaceWith: IItemStack Type: IItemStack
Return Type:
IIngredient