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> pPotion) Constructors in net.minecraft.world.entity.npc with parameters of type ItemCostModifierConstructorDescriptionEmeraldForItems
(ItemCost pItemStack, int pMaxUses, int pVillagerXp, int pEmeraldAmount) ItemsAndEmeraldsToItems
(ItemCost pFromItem, int pEmeraldCost, ItemStack pToItem, int pMaxUses, int pVillagerXp, float pPriceMultiplier, Optional<ResourceKey<EnchantmentProvider>> pEnchantmentProvider) -
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 pPaymentSlotIndex, ItemCost pPayment) -
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> pComponents) 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 pItemCost) Constructors in net.minecraft.world.item.trading with parameters of type ItemCostModifierConstructorDescriptionprivate
MerchantOffer
(ItemCost p_330734_, Optional<ItemCost> p_331500_, ItemStack p_45327_, int p_45330_, int p_45331_, boolean p_330754_, int p_332006_, int p_330432_, float p_45332_, int p_330282_) MerchantOffer
(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pMaxUses, int pXp, float pPriceMultiplier) MerchantOffer
(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pUses, int pMaxUses, int pXp, float pPriceMultiplier) MerchantOffer
(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pUses, int pMaxUses, int pXp, float pPriceMultiplier, int pDemand) MerchantOffer
(ItemCost pBaseCostA, ItemStack pResult, int pMaxUses, int pXp, float pPriceMultiplier) Constructor parameters in net.minecraft.world.item.trading with type arguments of type ItemCostModifierConstructorDescriptionprivate
MerchantOffer
(ItemCost p_330734_, Optional<ItemCost> p_331500_, ItemStack p_45327_, int p_45330_, int p_45331_, boolean p_330754_, int p_332006_, int p_330432_, float p_45332_, int p_330282_) MerchantOffer
(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pMaxUses, int pXp, float pPriceMultiplier) MerchantOffer
(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pUses, int pMaxUses, int pXp, float pPriceMultiplier) MerchantOffer
(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pUses, int pMaxUses, int pXp, float pPriceMultiplier, int pDemand)