Class MerchantOffer


  • public class MerchantOffer
    extends java.lang.Object
    • Field Detail

      • baseCostA

        private final ItemStack baseCostA
      • uses

        private int uses
      • maxUses

        private final int maxUses
      • rewardExp

        private boolean rewardExp
      • specialPriceDiff

        private int specialPriceDiff
      • demand

        private int demand
      • priceMultiplier

        private float priceMultiplier
      • xp

        private int xp
    • Constructor Detail

      • MerchantOffer

        public MerchantOffer​(CompoundNBT p_i50012_1_)
      • MerchantOffer

        public MerchantOffer​(ItemStack p_i50013_1_,
                             ItemStack p_i50013_2_,
                             int p_i50013_3_,
                             int p_i50013_4_,
                             float p_i50013_5_)
      • MerchantOffer

        public MerchantOffer​(ItemStack p_i50014_1_,
                             ItemStack p_i50014_2_,
                             ItemStack p_i50014_3_,
                             int p_i50014_4_,
                             int p_i50014_5_,
                             float p_i50014_6_)
      • MerchantOffer

        public MerchantOffer​(ItemStack p_i50015_1_,
                             ItemStack p_i50015_2_,
                             ItemStack p_i50015_3_,
                             int p_i50015_4_,
                             int p_i50015_5_,
                             int p_i50015_6_,
                             float p_i50015_7_)
      • MerchantOffer

        public MerchantOffer​(ItemStack p_i51550_1_,
                             ItemStack p_i51550_2_,
                             ItemStack p_i51550_3_,
                             int p_i51550_4_,
                             int p_i51550_5_,
                             int p_i51550_6_,
                             float p_i51550_7_,
                             int p_i51550_8_)
    • Method Detail

      • getBaseCostA

        public ItemStack getBaseCostA()
      • updateDemand

        public void updateDemand()
      • getUses

        public int getUses()
      • resetUses

        public void resetUses()
      • getMaxUses

        public int getMaxUses()
      • increaseUses

        public void increaseUses()
      • getDemand

        public int getDemand()
      • addToSpecialPriceDiff

        public void addToSpecialPriceDiff​(int p_222207_1_)
      • resetSpecialPriceDiff

        public void resetSpecialPriceDiff()
      • getSpecialPriceDiff

        public int getSpecialPriceDiff()
      • setSpecialPriceDiff

        public void setSpecialPriceDiff​(int p_222209_1_)
      • getPriceMultiplier

        public float getPriceMultiplier()
      • getXp

        public int getXp()
      • isOutOfStock

        public boolean isOutOfStock()
      • setToOutOfStock

        public void setToOutOfStock()
      • needsRestock

        public boolean needsRestock()
      • shouldRewardExp

        public boolean shouldRewardExp()
      • satisfiedBy

        public boolean satisfiedBy​(ItemStack p_222204_1_,
                                   ItemStack p_222204_2_)
      • isRequiredItem

        private boolean isRequiredItem​(ItemStack p_222201_1_,
                                       ItemStack p_222201_2_)