Class BasicTrade

  • All Implemented Interfaces:
    VillagerTrades.ITrade

    public class BasicTrade
    extends java.lang.Object
    implements VillagerTrades.ITrade
    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 Detail

      • maxTrades

        protected final int maxTrades
      • xp

        protected final int xp
      • priceMult

        protected final float priceMult
    • Constructor Detail

      • BasicTrade

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

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

        public BasicTrade​(int emeralds,
                          ItemStack forSale,
                          int maxTrades,
                          int xp)