IIngredient
This is IIngredient!!!
This class was added by a mod with mod-id crafttweaker
. 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.
Implemented Interfaces
IIngredient implements the following interfaces. That means any method available to them can also be used on this class.
Methods
getRemainingItem
When this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g. in CrT’s net.minecraft.item.crafting.ICraftingRecipe
Returns crafttweaker.api.item.IItemStack
Parameter | Type | Description |
---|---|---|
Parameter stack | Type crafttweaker.api.item.IItemStack | Description The stack to provide for this ingredient. |
matches
Does the given stack match the ingredient?
Returns boolean
Parameter | Type | Description |
---|---|---|
Parameter stack | Type crafttweaker.api.item.IItemStack | Description The stack to check |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name commandString | Type String | Has Getter true | Has Setter false |
Name items | Type crafttweaker.api.item.IItemStack[] | Has Getter true | Has Setter false |
Casters
Result type | Is Implicit |
---|---|
Result type crafttweaker.api.data.IData | Is Implicit true |
Result type crafttweaker.api.data.MapData | Is Implicit true |