Home Migration Guide Getting Started With Scripts Commands Examples
BracketHandlers

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.

script.zs
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

Return Type: int

script.zs
// MCTagWithAmount.getAmount() as int
myMCTagWithAmount.getAmount();

Return Type: MCTag<T>

script.zs
// MCTagWithAmount.getTag() as MCTag<T>
myMCTagWithAmount.getTag();

Return Type: MCTagWithAmount<T>

script.zs
MCTagWithAmount.setAmount(amount as int) as MCTagWithAmount<T>
ParameterTypeDescription
Parameter
amount
Type
int
Description
No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
Name
amount
Type
int
Has Getter
true
Has Setter
true
Description
No Description Provided
Name
tag
Type
MCTag<T>
Has Getter
true
Has Setter
false
Description
No Description Provided