Uses of Record Class
net.minecraft.world.item.trading.ItemCost
Packages that use ItemCost
Package
Description
-
Uses of ItemCost in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc declared as ItemCostModifier and TypeFieldDescriptionprivate final ItemCost
VillagerTrades.ItemsAndEmeraldsToItems.fromItem
private final ItemCost
VillagerTrades.EmeraldForItems.itemStack
Methods in net.minecraft.world.entity.npc that return ItemCostModifier and TypeMethodDescriptionprivate static ItemCost
VillagerTrades.potionCost
(Holder<Potion> potion) Constructors in net.minecraft.world.entity.npc with parameters of type ItemCostModifierConstructorDescriptionEmeraldForItems
(ItemCost itemStack, int maxUses, int villagerXp, int emeraldAmount) ItemsAndEmeraldsToItems
(ItemCost fromItem, int emeraldCost, ItemStack toItem, int maxUses, int villagerXp, float priceMultiplier, Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider) -
Uses of ItemCost in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory with parameters of type ItemCostModifier and TypeMethodDescriptionprivate void
MerchantMenu.moveFromInventoryToPaymentSlot
(int paymentSlotIndex, ItemCost payment) -
Uses of ItemCost in net.minecraft.world.item.trading
Fields in net.minecraft.world.item.trading declared as ItemCostModifier and TypeFieldDescriptionprivate final ItemCost
MerchantOffer.baseCostA
The first input for this offer.Fields in net.minecraft.world.item.trading with type parameters of type ItemCostModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemCost> ItemCost.CODEC
MerchantOffer.costB
The second input for this offer.static final StreamCodec
<RegistryFriendlyByteBuf, Optional<ItemCost>> ItemCost.OPTIONAL_STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemCost> ItemCost.STREAM_CODEC
Methods in net.minecraft.world.item.trading that return ItemCostModifier and TypeMethodDescriptionMerchantOffer.getItemCostA()
ItemCost.withComponents
(UnaryOperator<DataComponentPredicate.Builder> components) Methods in net.minecraft.world.item.trading that return types with arguments of type ItemCostMethods in net.minecraft.world.item.trading with parameters of type ItemCostModifier and TypeMethodDescriptionprivate int
MerchantOffer.getModifiedCostCount
(ItemCost itemCost) Constructors in net.minecraft.world.item.trading with parameters of type ItemCostModifierConstructorDescriptionprivate
MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, boolean rewardExp, int specialPriceDiff, int demand, float priceMultiplier, int xp) MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int maxUses, int xp, float priceMultiplier) MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, int xp, float priceMultiplier) MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, int xp, float priceMultiplier, int demand) MerchantOffer
(ItemCost baseCostA, ItemStack result, int maxUses, int xp, float priceMultiplier) Constructor parameters in net.minecraft.world.item.trading with type arguments of type ItemCostModifierConstructorDescriptionprivate
MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, boolean rewardExp, int specialPriceDiff, int demand, float priceMultiplier, int xp) MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int maxUses, int xp, float priceMultiplier) MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, int xp, float priceMultiplier) MerchantOffer
(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, int xp, float priceMultiplier, int demand)