Uses of Record Class
net.minecraft.world.item.trading.ItemCost
Package
Description
-
Uses of ItemCost in net.minecraft.world.entity.npc
Modifier and TypeFieldDescriptionprivate final ItemCost
VillagerTrades.ItemsAndEmeraldsToItems.fromItem
private final ItemCost
VillagerTrades.EmeraldForItems.itemStack
Modifier and TypeMethodDescriptionprivate static ItemCost
VillagerTrades.potionCost
(Holder<Potion> p_331255_) ModifierConstructorDescriptionEmeraldForItems
(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
Modifier and TypeMethodDescriptionprivate void
MerchantMenu.moveFromInventoryToPaymentSlot
(int p_40061_, ItemCost p_331779_) -
Uses of ItemCost in net.minecraft.world.item.trading
Modifier 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
Modifier and TypeMethodDescriptionMerchantOffer.getItemCostA()
ItemCost.withComponents
(UnaryOperator<DataComponentPredicate.Builder> p_331084_) Modifier and TypeMethodDescriptionprivate int
MerchantOffer.getModifiedCostCount
(ItemCost p_330556_) ModifierConstructorDescriptionprivate
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_) ModifierConstructorDescriptionprivate
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_)