MCTagWithAmount<T : Object>
Link to mctagwithamountt--object
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.tag.MCTagWithAmount;
Interfacce Implementate
Link to interfacce-implementate
MCTagWithAmount implements the following interfaces. That means all methods defined in these interfaces are also available in MCTagWithAmount
Metodi
Link to metodi
Name: getAmount
Return Type: int
ZenScript Copy// MCTagWithAmount.getAmount() as int
myMCTagWithAmount.getAmount();
Name: getTag
Return Type: MCTag<T>
ZenScript Copy// MCTagWithAmount.getTag() as MCTag<T>
myMCTagWithAmount.getTag();
Name: setAmount
Return Type: MCTagWithAmount<T>
ZenScript CopyMCTagWithAmount.setAmount(amount as int) as MCTagWithAmount<T>
Parametro | Tipo | Descrizione |
---|---|---|
Parametro amount | Tipo int | Descrizione No Description Provided |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome amount | Tipo int | Ha Getter sì | Ha Setter sì | Descrizione No Description Provided |
Nome tag | Tipo MCTag<T> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |