Many<T : Object>

Link to manyt--object

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

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

Link to импорт-класса

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.util.Many;

Implemented Interfaces

Link to implemented-interfaces

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

Name: getAmount

Return Type: int

ZenScript
Copy
// Many.getAmount() as int

myMany.getAmount();

Name: getData

Return Type: T

ZenScript
Copy
// Many.getData() as T

myMany.getData();

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет Setter
Название
amount
Тип
int
Имеет Getter
true
Имеет Setter
false
Название
data
Тип
T
Имеет Getter
true
Имеет Setter
false