TippedArrowForItemsAndEmeralds
Link to tippedarrowforitemsandemeralds
Diese Klasse importieren
Link to diese-klasse-importieren
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.TippedArrowForItemsAndEmeralds;
Implemented Interfaces
Link to implemented-interfaces
TippedArrowForItemsAndEmeralds implements the following interfaces. That means all methods defined in these interfaces are also available in TippedArrowForItemsAndEmeralds
Constructors
Link to constructors
ZenScript Copynew 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);
Parameter | Type | Beschreibung |
---|---|---|
Parameter fromItem | Type ItemDefinition | Beschreibung The Item that is being sold by the villager, that will have a random potion effect attached |
Parameter fromCount | Type int | Beschreibung The amount of the Item being sold to the villager |
Parameter toItem | Type ItemDefinition | Beschreibung The Item that is being sold by the villager |
Parameter toCount | Type int | Beschreibung The amount of the item that is being sold by the villager |
Parameter emeraldCost | Type int | Beschreibung How many emeralds will be given to the villager |
Parameter maxUses | Type int | Beschreibung How many times can this trade be used |
Parameter villagerXp | Type int | Beschreibung How much experience does this trade reward the villager |