Class IdentifiableMerchantOffer
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
ConstructorsConstructorDescriptionIdentifiableMerchantOffer(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
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
-
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
-
getId
-