IIngredientWithAmount

Link to iingredientwithamount

Consists of an ingredient and an amount.

Импорт класса

Link to импорт-класса

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
Copy
import 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

Link to getCommandString

Name: getCommandString

Returns the BEP to get this thingy

Return Type: string

ZenScript
Copy
// IIngredientWithAmount.getCommandString() as string

myIIngredientWithAmount.getCommandString();

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
amount
Тип
int
Имеет Getter
true
Имеет Setter
false
Описание
Gets the amount of Items in the ItemStack
Название
commandString
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
Returns the BEP to get this thingy
Название
ingredient
Тип
IIngredient
Имеет Getter
true
Имеет Setter
false
Описание
The backing ingredient