BasicItemListing
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Implements
BasicItemListing
implements the following interfaces:
Constructors
new(price as ItemStack, price2 as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float)
Parameters:
maxTrades: int
Type: int
- How many times can this trade be used xp: int
Type: int
- How much experience does this trade reward the villager priceMult: float
Type: float
- How much the price is affected by demand, Hero of the Village, and village reputation Members
getOffer(traderEntity as Entity, random as RandomSource) as MerchantOffer
Parameters:
random: RandomSource
Type: RandomSource
Return Type:
MerchantOffer