IIngredientAny
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.IIngredientAny;Description
An IIngredient which matches all itemsImplements
IIngredientAny
implements the following interfaces:
IIngredient,CommandStringDisplayable
Operators
myIIngredient in IIngredientAny.getInstance()Parameters:
Return Type:
bool
// (IIngredientAny * (amount as int)) as IIngredientWithAmountIIngredientAny.getInstance() * myIntParameters:
amount: int  Type: int   
Return Type:
IIngredientWithAmount
IIngredientAny.getInstance() | myIIngredientParameters:
other: IIngredient  Type: IIngredient   
Return Type:
IIngredientList
Members
Please use Item Components instead.
// IIngredientAny.addGlobalAttributeModifier(attribute as Attribute, id as ResourceLocation, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[]);IIngredientAny.getInstance().addGlobalAttributeModifier(myAttribute, myResourceLocation, myDouble, myOperation, myEquipmentSlot[]);Parameters:
id: ResourceLocation  Type: ResourceLocation   value: double  Type: double   operation: AttributeOperation  Type: AttributeOperation   slotTypes: EquipmentSlot[]  Type: EquipmentSlot[]   IIngredientAny.getInstance().asIIngredientWithAmount();
Return Type:
IIngredientWithAmount
// IIngredientAny as IIngredientWithAmountIIngredientAny.getInstance() as IIngredientWithAmount
Return Type:
IIngredientWithAmount
// IIngredientAny.burnTime = (time as int);IIngredientAny.getInstance().burnTime = myInt;Parameters:
time: int  Type: int 
- the new burn time   // IIngredientAny.burnTime(time as int);IIngredientAny.getInstance().burnTime(500);Parameters:
time: int  Type: int 
- the new burn time   // IIngredientAny.clearTooltip(leaveName as bool = false);IIngredientAny.getInstance().clearTooltip(myBool);Parameters:
leaveName: bool (optional)  Type: bool  
Default Value: false 
IIngredientAny.getInstance().contains((<item:minecraft:iron_ingot> | <item:minecraft:gold_ingot>));Parameters:
Return Type:
bool
// IIngredientAny.empty as boolIIngredientAny.getInstance().empty
Return Type:
bool
Returns: true if empty, false otherwise
// IIngredientAny.empty() as bool;IIngredientAny.getInstance().empty();
Return Type:
bool
IIngredientAny.getInstance().getRemainingItem(<item:minecraft:iron_ingot>);Parameters:
Return Type:
IItemStack
// IIngredientAny.modifyShiftTooltip(shiftedFunction as ITooltipFunction, unshiftedFunction as ITooltipFunction = null);IIngredientAny.getInstance().modifyShiftTooltip(myITooltipFunction, myITooltipFunction);Parameters:
shiftedFunction: ITooltipFunction  Type: ITooltipFunction   IIngredientAny.getInstance().modifyTooltip(myITooltipFunction);Parameters:
function: ITooltipFunction  Type: ITooltipFunction   IIngredientAny.getInstance().mul(myInt);Parameters:
amount: int  Type: int   
Return Type:
IIngredientWithAmount
IIngredientAny.getInstance().onlyDamagedAtLeast(myInt);Parameters:
minDamage: int  Type: int   
Return Type:
IIngredient
IIngredientAny.getInstance().onlyDamagedAtMost(myInt);Parameters:
maxDamage: int  Type: int   
Return Type:
IIngredient
// IIngredientAny.onlyIf(uid as string, function as function(t as IItemStack) as bool = null) as IIngredient;IIngredientAny.getInstance().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.
IIngredientAny.getInstance().removeGlobalAttribute(myAttribute, myEquipmentSlot[]);Parameters:
slotTypes: EquipmentSlot[]  Type: EquipmentSlot[]   Please use Item Components instead.
IIngredientAny.getInstance().removeGlobalAttributeModifier(myString, myEquipmentSlot[]);Parameters:
uuid: string  Type: string   slotTypes: EquipmentSlot[]  Type: EquipmentSlot[]   Please use Item Components instead.
IIngredientAny.getInstance().removeGlobalAttributeModifier(myUUID, myEquipmentSlot[]);Parameters:
uuid: UUID  Type: UUID   slotTypes: EquipmentSlot[]  Type: EquipmentSlot[]   // IIngredientAny.removeTooltip(regex as string);IIngredientAny.getInstance().removeTooltip(myString);Parameters:
regex: string  Type: string   // IIngredientAny.transformCustom(uid as string, function as function(r as IItemStack) as IItemStack = null) as IIngredient;IIngredientAny.getInstance().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
IIngredientAny.getInstance().transformDamage(myInt);Parameters:
amount: int (optional)  Type: int  
Default Value: 1 
Return Type:
IIngredient
IIngredientAny.getInstance().transformReplace(myIItemStack);Parameters:
replaceWith: IItemStack  Type: IItemStack   
Return Type:
IIngredient