Many<T : Object>
Link to manyt--object
Used to represent data with an amount. (Think something like a
Importare la Classe
Link to importare-la-classe
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 Copyimport crafttweaker.api.util.Many;
Interfacce Implementate
Link to interfacce-implementate
Many implements the following interfaces. That means all methods defined in these interfaces are also available in Many
Metodi
Link to metodi
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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome amount | Tipo int | Ha Getter sì | Ha Setter no |
Nome data | Tipo T | Ha Getter sì | Ha Setter no |