java.lang.Object
net.minecraft.world.item.trading.MerchantOffer
tech.anonymoushacker1279.immersiveweapons.entity.npc.trading.trades.IdentifiableMerchantOffer

public class IdentifiableMerchantOffer extends net.minecraft.world.item.trading.MerchantOffer
  • Constructor Summary

    Constructors
    Constructor
    Description
    IdentifiableMerchantOffer(net.minecraft.world.item.ItemStack pBaseCostA, net.minecraft.world.item.ItemStack pResult, net.minecraft.world.item.ItemStack newEnchantableItem, int pMaxUses, int pXp, float pPriceMultiplier)
    Constructor for IdentifiableMerchantOffer.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     

    Methods inherited from class net.minecraft.world.item.trading.MerchantOffer

    addToSpecialPriceDiff, assemble, copy, createTag, getBaseCostA, getCostA, getCostB, getDemand, getMaxUses, getPriceMultiplier, getResult, getSpecialPriceDiff, getUses, getXp, increaseUses, isOutOfStock, needsRestock, resetSpecialPriceDiff, resetUses, satisfiedBy, setSpecialPriceDiff, setToOutOfStock, shouldRewardExp, take, updateDemand

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IdentifiableMerchantOffer

      public IdentifiableMerchantOffer(net.minecraft.world.item.ItemStack pBaseCostA, net.minecraft.world.item.ItemStack pResult, net.minecraft.world.item.ItemStack newEnchantableItem, int pMaxUses, int pXp, float pPriceMultiplier)
      Constructor for IdentifiableMerchantOffer. It allows an ID to be specified so that offers can be easily identified.
  • Method Details

    • setId

      public void setId(String id)
    • getId

      public String getId()