Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

Many

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.util.Many;

Description

Used to represent data with an amount. (Think something like a <tag>, that does not have an amount by itself)

Loaders

This type is available in the following loaders:

  • crafttweaker
  • tags

Implements

Many<T> implements the following interfaces:

CommandStringDisplayable

Members

Getter
script.zs
// Many<T>.amount as int
myMany.amount

Return Type: int

amount() as int
script.zs
// Many<T>.amount() as int;
myMany.amount();

Return Type: int

Getter
script.zs
// Many<T>.data as T
myMany.data

Return Type: T

data() as T
script.zs
// Many<T>.data() as T;
myMany.data();

Return Type: T