MCTagWithAmount<T : Object>

Link to mctagwithamountt--object

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
Copy
import crafttweaker.api.tag.MCTagWithAmount;

Implemented Interfaces

Link to implemented-interfaces

MCTagWithAmount implements the following interfaces. That means all methods defined in these interfaces are also available in MCTagWithAmount

Link to g-

Name: getAmount

Return Type: int

ZenScript
Copy
// MCTagWithAmount.getAmount() as int

myMCTagWithAmount.getAmount();

Name: getTag

Return Type: MCTag<T>

ZenScript
Copy
// MCTagWithAmount.getTag() as MCTag<T>

myMCTagWithAmount.getTag();

Link to g--2

Name: setAmount

Return Type: MCTagWithAmount<T>

ZenScript
Copy
MCTagWithAmount.setAmount(amount as int) as MCTagWithAmount<T>
ParameterTypeDescription
Parameter
amount
Type
int
Description
No Description Provided
NombreTypeHas GetterHas SetterDescription
Nombre
amount
Type
int
Has Getter
true
Has Setter
true
Description
No Description Provided
Nombre
tag
Type
MCTag<T>
Has Getter
true
Has Setter
false
Description
No Description Provided