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 ItemCostVillagerTrades.ItemsAndEmeraldsToItems.fromItemprivate final ItemCostVillagerTrades.EmeraldForItems.itemStackMethods in net.minecraft.world.entity.npc that return ItemCostModifier and TypeMethodDescriptionprivate static ItemCostVillagerTrades.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 voidMerchantMenu.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 ItemCostMerchantOffer.baseCostAThe 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.CODECMerchantOffer.costBThe second input for this offer.static final StreamCodec<RegistryFriendlyByteBuf, Optional<ItemCost>> ItemCost.OPTIONAL_STREAM_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ItemCost> ItemCost.STREAM_CODECMethods in net.minecraft.world.item.trading that return ItemCostModifier and TypeMethodDescriptionMerchantOffer.getItemCostA()ItemCost.withComponents(UnaryOperator<DataComponentExactPredicate.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 intMerchantOffer.getModifiedCostCount(ItemCost pItemCost) Constructors in net.minecraft.world.item.trading with parameters of type ItemCostModifierConstructorDescriptionprivateMerchantOffer(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pUses, int pMaxUses, boolean pRewardExp, int pSpecialPriceDiff, int pDemand, float pPriceMultiplier, int pXp) 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 ItemCostModifierConstructorDescriptionprivateMerchantOffer(ItemCost pBaseCostA, Optional<ItemCost> pCostB, ItemStack pResult, int pUses, int pMaxUses, boolean pRewardExp, int pSpecialPriceDiff, int pDemand, float pPriceMultiplier, int pXp) 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)