Denotes a special builder that is used for builing special item types. Usato in mods.contenttweaker.item.ItemTypeBuilder#withType

This class was added by a mod with mod-id contenttweaker. Perciò, è necessario avere questa mod installata per poter utilizzare questa funzione.

Importare la Classe

Link to importare-la-classe

Potrebbe essere necessario importare il pacchetto, se si incontrano dei problemi (come castare un vettore), quindi meglio essere sicuri e aggiungere la direttiva di importazione.

ZenScript
Copy
mods.contenttweaker.item.ItemTypeBuilder

Interfacce Implementate

Link to interfacce-implementate

ItemTypeBuilder implements the following interfaces. Ciò significa che ogni metodo presente nell'interfaccia può essere usato anche per questa classe.

Istruisce CoT per costruire realmente qualsiasi cosa il costruttore dovrebbe star costruendo.

ZenScript
Copy
new ItemBuilder().withType<ItemBuilderBasic>().build(resourceLocation as String);
new ItemBuilder().withType<ItemBuilderBasic>().build("my_awesome_block");
ParametroTipoDescrizione
Parametro
resourceLocation
Tipo
String
Descrizione
Il percorso della risorsa per dare questo blocco