Package net.minecraftforge.common
Class BasicItemListing
java.lang.Object
net.minecraftforge.common.BasicItemListing
- All Implemented Interfaces:
- VillagerTrades.ItemListing
A default, exposed implementation of ITrade.  All of the other implementations of ITrade (in VillagerTrades) are not public.
 This class contains everything needed to make a MerchantOffer, the actual "trade" object shown in trading guis.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionBasicItemListing(int emeralds, ItemStack forSale, int maxTrades, int xp) BasicItemListing(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult) BasicItemListing(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult) BasicItemListing(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult) 
- 
Method SummaryModifier and TypeMethodDescription@Nullable MerchantOffergetOffer(Entity p_219693_, RandomSource p_219694_) 
- 
Field Details- 
price
- 
price2
- 
forSale
- 
maxTradesprotected final int maxTrades
- 
xpprotected final int xp
- 
priceMultprotected final float priceMult
 
- 
- 
Constructor Details- 
BasicItemListing
- 
BasicItemListing
- 
BasicItemListing
- 
BasicItemListing
 
- 
- 
Method Details- 
getOffer- Specified by:
- getOfferin interface- VillagerTrades.ItemListing
 
 
-