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.
Description
An IIngredient which matches all itemsImplements
IIngredientAny
implements the following interfaces:
IIngredient
,CommandStringDisplayable
Operators
Parameters:
Return Type:
bool
Parameters:
amount: int
Type: int
Return Type:
IIngredientWithAmount
Parameters:
other: IIngredient
Type: IIngredient
Return Type:
IIngredientList
Members
Attributes added with this method appear on all ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to have the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withAttributeModifier
Parameters:
name: string
Type: string
- The name of the modifier. value: double
Type: double
- The value of the modifier. The UUID can be used to override an existing attribute on an ItemStack with this new modifier. You can use
/ct hand attributes
to get the UUID of the attributes on an ItemStack.Attributes added with this method appear on all ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to have the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withAttributeModifier
Parameters:
uuid: string
Type: string
- The unique identifier of the modifier to replace. name: string
Type: string
- The name of the modifier. value: double
Type: double
- The value of the modifier. The UUID can be used to override an existing attribute on an ItemStack with this new modifier. You can use
/ct hand attributes
to get the UUID of the attributes on an ItemStack.Attributes added with this method appear on all ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to have the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withAttributeModifier
Parameters:
uuid: UUID
Type: UUID
- The unique identifier of the modifier to replace. name: string
Type: string
- The name of the modifier. value: double
Type: double
- The value of the modifier.
Return Type:
IngredientConditioned<IIngredient>
Return Type:
IData
Return Type:
IIngredientWithAmount
Return Type:
IIngredientWithAmount
Return Type:
MapData
Parameters:
time: int
Type: int
- the new burn time Parameters:
time: int
Type: int
- the new burn time Parameters:
leaveName: bool
(optional) Type: bool
Default Value: false
Parameters:
Return Type:
bool
Return Type:
bool
Returns: true if empty, false otherwise
Return Type:
bool
Return Type:
IIngredientAny
Parameters:
Return Type:
IItemStack
Parameters:
Return Type:
bool
Parameters:
shiftedFunction: ITooltipFunction
Type: ITooltipFunction
Parameters:
function: ITooltipFunction
Type: ITooltipFunction
Parameters:
amount: int
Type: int
Return Type:
IIngredientWithAmount
Parameters:
condition: IIngredientCondition<IIngredient>
Type: IIngredientCondition<IIngredient>
Return Type:
IngredientConditioned<IIngredient>
Return Type:
IngredientConditioned<IIngredient>
Parameters:
minDamage: int
Type: int
Return Type:
IngredientConditioned<IIngredient>
Parameters:
maxDamage: int
Type: int
Return Type:
IngredientConditioned<IIngredient>
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:
IngredientConditioned<IIngredient>
Attributes removed with this method are removed from ItemStacks that match this IIngredient, regardless of how or when the ItemStack was made, if you want to remove the attribute on a single specific ItemStack (such as a specific Diamond Sword made in a recipe), then you should use IItemStack#withoutAttribute.
This method can only remove default Attributes from an ItemStack, it is still possible that an ItemStack can override it.
Parameters:
Parameters:
uuid: string
Type: string
- The unique id of the AttributeModifier to remove. Parameters:
uuid: UUID
Type: UUID
- The unique id of the AttributeModifier to remove. Parameters:
regex: string
Type: string
Return Type:
IIngredientTransformed<IIngredient>
Parameters:
transformer: IIngredientTransformer<IIngredient>
Type: IIngredientTransformer<IIngredient>
Return Type:
IIngredientTransformed<IIngredient>
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:
IIngredientTransformed<IIngredient>
Parameters:
amount: int
(optional) Type: int
Default Value: 1
Return Type:
IIngredientTransformed<IIngredient>
Parameters:
replaceWith: IItemStack
Type: IItemStack
Return Type:
IIngredientTransformed<IIngredient>