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
  • Field Summary

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

    CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    IdentifiableMerchantOffer(net.minecraft.world.item.trading.ItemCost baseCostA, Optional<net.minecraft.world.item.trading.ItemCost> costB, net.minecraft.world.item.ItemStack result, int maxUses, int xp, float priceMultiplier)
    Constructor for IdentifiableMerchantOffer.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     

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

    addToSpecialPriceDiff, assemble, copy, createFromStream, getBaseCostA, getCostA, getCostB, getDemand, getItemCostA, getItemCostB, 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.trading.ItemCost baseCostA, Optional<net.minecraft.world.item.trading.ItemCost> costB, net.minecraft.world.item.ItemStack result, int maxUses, int xp, float priceMultiplier)
      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()