EmeraldForItems
Link to emeraldforitems
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.EmeraldForItems;
Implemented Interfaces
Link to implemented-interfaces
EmeraldForItems implements the following interfaces. That means all methods defined in these interfaces are also available in EmeraldForItems
Constructors
Link to constructors
ZenScript Copynew EmeraldForItems(item as ItemLike, cost as int, maxUses as int, villagerXp as int) as EmeraldForItems
new EmeraldForItems(<item:minecraft:diamond>, 1, 8, 2);
Parameter | Type | Beschreibung |
---|---|---|
Parameter item | Type ItemLike | Beschreibung The Item that is being given to the villager |
Parameter cost | Type int | Beschreibung How many emeralds does this trade cost |
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 |