IIngredientWithAmount
Link to iingredientwithamount
Consists of an ingredient and an amount.
Importing the class
Link to 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.
ZenScript Copyimport crafttweaker.api.ingredient.IIngredientWithAmount;
Implemented Interfaces
Link to implemented-interfaces
IIngredientWithAmount implements the following interfaces. That means all methods defined in these interfaces are also available in IIngredientWithAmount
Casters
Link to casters
Result Type | 암묵적 |
---|---|
Result Type IData | 암묵적 true |
Methods
Link to methods
Name: asIData
Return Type: IData
ZenScript Copy// IIngredientWithAmount.asIData() as IData
myIIngredientWithAmount.asIData();
Name: getCommandString
Returns the BEP to get this thingy
Return Type: string
ZenScript Copy// IIngredientWithAmount.getCommandString() as string
myIIngredientWithAmount.getCommandString();
Properties
Link to properties
이름 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
이름 amount | Type int | Has Getter true | Has Setter false | Description Gets the amount of Items in the ItemStack |
이름 commandString | Type string | Has Getter true | Has Setter false | Description Returns the BEP to get this thingy |
이름 ingredient | Type IIngredient | Has Getter true | Has Setter false | Description The backing ingredient |