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> p_331255_) Constructors in net.minecraft.world.entity.npc with parameters of type ItemCostModifierConstructorDescriptionEmeraldForItems
(ItemCost p_331989_, int p_294800_, int p_295111_, int p_294137_) ItemsAndEmeraldsToItems
(ItemCost p_331613_, int p_320882_, ItemStack p_331232_, int p_320089_, int p_320458_, float p_319962_) -
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 p_40061_, ItemCost p_331779_) -
Uses of ItemCost in net.minecraft.world.item.trading
Fields in net.minecraft.world.item.trading declared as ItemCostFields in net.minecraft.world.item.trading with type parameters of type ItemCostModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemCost> ItemCost.CODEC
MerchantOffer.costB
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> p_331084_) 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 p_330556_) 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 p_331596_, Optional<ItemCost> p_330410_, ItemStack p_45334_, int p_45337_, int p_45338_, float p_45340_) MerchantOffer
(ItemCost p_331409_, Optional<ItemCost> p_331614_, ItemStack p_45321_, int p_45323_, int p_45324_, int p_330951_, float p_45325_) MerchantOffer
(ItemCost p_331744_, Optional<ItemCost> p_330460_, ItemStack p_324239_, int p_324562_, int p_324493_, int p_323558_, float p_323528_, int p_324484_) MerchantOffer
(ItemCost p_332077_, ItemStack p_320418_, int p_320071_, int p_320069_, float p_320947_) 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 p_331596_, Optional<ItemCost> p_330410_, ItemStack p_45334_, int p_45337_, int p_45338_, float p_45340_) MerchantOffer
(ItemCost p_331409_, Optional<ItemCost> p_331614_, ItemStack p_45321_, int p_45323_, int p_45324_, int p_330951_, float p_45325_) MerchantOffer
(ItemCost p_331744_, Optional<ItemCost> p_330460_, ItemStack p_324239_, int p_324562_, int p_324493_, int p_323558_, float p_323528_, int p_324484_)