TippedArrowForItemsAndEmeralds

Link to tippedarrowforitemsandemeralds

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
Copy
import crafttweaker.api.villager.trade.type.TippedArrowForItemsAndEmeralds;

Interfacce Implementate

Link to interfacce-implementate

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

ZenScript
Copy
new TippedArrowForItemsAndEmeralds(fromItem as ItemDefinition, fromCount as int, toItem as ItemDefinition, toCount as int, emeraldCost as int, maxUses as int, villagerXp as int) as TippedArrowForItemsAndEmeralds
new TippedArrowForItemsAndEmeralds(<item:minecraft:diamond>, 8, <item:minecraft:diamond>, 1, 2, 8, 2);
ParametroTipoDescrizione
Parametro
fromItem
Tipo
ItemDefinition
Descrizione
The Item that is being sold by the villager, that will have a random potion effect attached
Parametro
fromCount
Tipo
int
Descrizione
The amount of the Item being sold to the villager
Parametro
toItem
Tipo
ItemDefinition
Descrizione
The Item that is being sold by the villager
Parametro
toCount
Tipo
int
Descrizione
The amount of the item that is being sold by the villager
Parametro
emeraldCost
Tipo
int
Descrizione
How many emeralds will be given to the villager
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