DyedArmorForEmeralds
Link to dyedarmorforemeralds
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.villager.trade.type.DyedArmorForEmeralds;
Interfacce Implementate
Link to interfacce-implementate
DyedArmorForEmeralds implements the following interfaces. That means all methods defined in these interfaces are also available in DyedArmorForEmeralds
Constructors
Link to constructors
ZenScript Copynew DyedArmorForEmeralds(item as ItemDefinition, value as int) as DyedArmorForEmeralds
new DyedArmorForEmeralds(<item:minecraft:leather_chestplate>, 16);
Parametro | Tipo | Descrizione |
---|---|---|
Parametro item | Tipo ItemDefinition | Descrizione The Item that is being sold by the villager, dyed a random color |
Parametro valore | Tipo int | Descrizione How many emeralds will this trade cost |
ZenScript Copynew DyedArmorForEmeralds(item as ItemDefinition, value as int, maxUses as int, villagerXp as int) as DyedArmorForEmeralds
new DyedArmorForEmeralds(<item:minecraft:leather_chestplate>, 16, 8, 2);
Parametro | Tipo | Descrizione |
---|---|---|
Parametro item | Tipo ItemDefinition | Descrizione The Item that is being sold by the villager, dyed a random color |
Parametro valore | Tipo int | Descrizione How many emeralds will this trade cost |
Parametro maxUses | Tipo int | Descrizione How many times can this trade be used |
Parametro villagerXp | Tipo int | Descrizione How much experience does this trade reward the villager |