IIngredientWithAmount
Link to iingredientwithamount
Consists of an ingredient and an amount.
Importare la Classe
Link to importare-la-classe
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;
Interfacce Implementate
Link to interfacce-implementate
IIngredientWithAmount implements the following interfaces. That means all methods defined in these interfaces are also available in IIngredientWithAmount
Caster
Link to caster
Result Type | Implicito |
---|---|
Result Type IData | Implicito sì |
Metodi
Link to metodi
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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome amount | Tipo int | Ha Getter sì | Ha Setter no | Descrizione Gets the amount of Items in the ItemStack |
Nome commandString | Tipo string | Ha Getter sì | Ha Setter no | Descrizione Returns the BEP to get this thingy |
Nome ingredient | Tipo IIngredient | Ha Getter sì | Ha Setter no | Descrizione The backing ingredient |