ToolIngredient
An ingredient that matches any item with the given tool type.
This class was added by a mod with mod-id farmersdelight
. So you need to have this mod installed if you want to use this feature.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Implemented Interfaces
ToolIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in ToolIngredient
Static Methods
Get a tool ingredient from a tool type name.
Returns: The ingredient
Return Type: ToolIngredient
Parameter | Type | Description |
---|---|---|
Parameter type | Type string | Description The name of the type |
Get a tool ingredient from a tool type.
Returns: The ingredient
Return Type: ToolIngredient
Parameter | Type | Description |
---|---|---|
Parameter type | Type ToolType | Description The tool type |
Casters
Result type | Is Implicit |
---|---|
Result type IData | Is Implicit true |
Result type MapData | Is Implicit true |
Methods
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description No Description Provided |
Parameter name | Type string | Description No Description Provided |
Parameter value | Type double | Description No Description Provided |
Parameter operation | Type AttributeOperation | Description No Description Provided |
Parameter slotTypes | Type MCEquipmentSlotType[] | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description No Description Provided |
Parameter uuid | Type string | Description No Description Provided |
Parameter name | Type string | Description No Description Provided |
Parameter value | Type double | Description No Description Provided |
Parameter operation | Type AttributeOperation | Description No Description Provided |
Parameter slotTypes | Type MCEquipmentSlotType[] | Description No Description Provided |
Return Type: void
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter arg0 | Type MCTextComponent | Description No Description Provided | Optional false | DefaultValue |
Parameter arg1 | Type MCTextComponent | Description No Description Provided | Optional true | DefaultValue |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter content | Type MCTextComponent | Description No Description Provided |
Return Type: MCIngredientConditioned<IIngredient>
Return Type: void
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter ingredient | Type IIngredient | Description No Description Provided |
Return Type: IItemStack
Parameter | Type | Description |
---|---|---|
Parameter stack | Type IItemStack | Description No Description Provided |
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter stack | Type IItemStack | Description No Description Provided |
Return Type: void
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter arg0 | Type ITooltipFunction | Description No Description Provided | Optional false | DefaultValue |
Parameter arg1 | Type ITooltipFunction | Description No Description Provided | Optional true | DefaultValue |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter function | Type ITooltipFunction | Description No Description Provided |
Return Type: MCIngredientConditioned<IIngredient>
Parameter | Type | Description |
---|---|---|
Parameter condition | Type IIngredientCondition<IIngredient> | Description No Description Provided |
Return Type: MCIngredientConditioned<IIngredient>
Return Type: MCIngredientConditioned<IIngredient>
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter arg0 | Type string | Description No Description Provided | Optional false | DefaultValue |
Parameter arg1 | Type Predicate<IItemStack> | Description No Description Provided | Optional true | DefaultValue |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description No Description Provided |
Parameter slotTypes | Type MCEquipmentSlotType[] | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter uuid | Type string | Description No Description Provided |
Parameter slotTypes | Type MCEquipmentSlotType[] | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter regex | Type string | Description No Description Provided |
Operators
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name burnTime | Type void | Has Getter false | Has Setter true | Description No Description Provided |