Uses of Record Class
net.minecraft.world.item.trading.ItemCost
Packages that use ItemCost
-
Uses of ItemCost in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory with parameters of type ItemCostModifier and TypeMethodDescriptionprivate voidMerchantMenu.moveFromInventoryToPaymentSlot(int paymentSlot, ItemCost cost) -
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()TradeCost.toItemCost(LootContext lootContext, int additionalCost) ItemCost.withComponents(UnaryOperator<DataComponentExactPredicate.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 ItemCostConstructors 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 buy, 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)