Class BasicItemListing

java.lang.Object
net.minecraftforge.common.BasicItemListing
All Implemented Interfaces:
VillagerTrades.ItemListing

public class BasicItemListing extends Object implements 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 Details

    • price

      protected final ItemStack price
    • price2

      protected final ItemStack price2
    • forSale

      protected final ItemStack forSale
    • maxTrades

      protected final int maxTrades
    • xp

      protected final int xp
    • priceMult

      protected final float priceMult
  • Constructor Details

    • BasicItemListing

      public BasicItemListing(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult)
    • BasicItemListing

      public BasicItemListing(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult)
    • BasicItemListing

      public BasicItemListing(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult)
    • BasicItemListing

      public BasicItemListing(int emeralds, ItemStack forSale, int maxTrades, int xp)
  • Method Details