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.

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

MCTagWithAmount.getAmount() as int
myMCTagWithAmount.getAmount();
getTag

Return Type: MCTag<T>

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

Return Type: MCTagWithAmount<T>

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

Properties

NameTypeHas GetterHas Setter
amountinttruetrue
tagMCTag<T>truefalse