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> 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 voidMerchantMenu.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 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<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 intMerchantOffer.getModifiedCostCount(ItemCost itemCost) Constructors in net.minecraft.world.item.trading with parameters of type ItemCostModifierConstructorDescriptionprivateMerchantOffer(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 ItemCostModifierConstructorDescriptionprivateMerchantOffer(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)