MCTagWithAmount<T : Object>

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

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

Methods

getAmount

Return Type: int

ZenScript
Copy
MCTagWithAmount.getAmount() as int
myMCTagWithAmount.getAmount();

getTag

Return Type: MCTag<T>

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

setAmount

Return Type: MCTagWithAmount<T>

ZenScript
Copy
MCTagWithAmount.setAmount(amount as int) as MCTagWithAmount<T>
ParameterTypeDescription
amountintNo Description Provided

Properties

名称TypeHas GetterHas Setter
amountinttruetrue
tagMCTag<T>truefalse