BasicItemListing
Link to basicitemlisting
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.BasicItemListing;
Implemented Interfaces
Link to implemented-interfaces
BasicItemListing implements the following interfaces. That means all methods defined in these interfaces are also available in BasicItemListing
Constructors
Link to constructors
ZenScript Copynew BasicItemListing(price as ItemStack, price2 as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float) as BasicItemListing
new BasicItemListing(<item:minecraft:diamond>, <item:minecraft:diamond>, <item:minecraft:diamond>, 8, 2, 0.05);
Parameter | Type | Beschreibung |
---|---|---|
Parameter price | Type Artikel-Stack | Beschreibung The primary Item that is being given to the villager |
Parameter price2 | Type Artikel-Stack | Beschreibung The secondary item that is being given to the villager |
Parameter forSale | Type Artikel-Stack | Beschreibung The Item that is being sold by the villager |
Parameter maxTrades | Type int | Beschreibung How many times can this trade be used |
Parameter xp | Type int | Beschreibung How much experience does this trade reward the villager |
Parameter priceMult | Type float | Beschreibung How much the price is affected by demand, Hero of the Village, and village reputation |