MCTagWithAmount<T : Object>

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

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>
ПараметрТипDescription
amountintNo Description Provided

Свойства

НазваниеТипИмеет GetterИмеет Setter
amountinttruetrue
tagMCTag<T>truefalse