Class MerchantOffer

java.lang.Object
net.minecraft.item.MerchantOffer

public class MerchantOffer extends Object
  • Field Details

    • baseCostA

      private final ItemStack baseCostA
    • costB

      private final ItemStack costB
    • result

      private final ItemStack result
    • 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 Details

    • 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 Details

    • getBaseCostA

      public ItemStack getBaseCostA()
    • getCostA

      public ItemStack getCostA()
    • getCostB

      public ItemStack getCostB()
    • getResult

      public ItemStack getResult()
    • updateDemand

      public void updateDemand()
    • assemble

      public ItemStack assemble()
    • 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()
    • createTag

      public CompoundNBT createTag()
    • satisfiedBy

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

      private boolean isRequiredItem(ItemStack p_222201_1_, ItemStack p_222201_2_)
    • take

      public boolean take(ItemStack p_222215_1_, ItemStack p_222215_2_)