net.minecraft.world.item.trading

public record ItemCost

dhw
net.minecraft.world.item.trading.ItemCost
net.minecraft.class_9306
net.minecraft.unmapped.C_gqfxurno
net.minecraft.village.TradedItem
net.minecraft.village.TradeableItem

Field summary

Modifier and TypeField
private final Holder<Item>
d
item
comp_2424
f_eomiynpx
item
item
private final int
e
count
comp_2425
f_kataqrye
count
count
private final DataComponentExactPredicate
f
components
comp_2426
f_ulkwijnt
components
components
private final ItemStack
g
itemStack
comp_2427
f_chiawipp
itemStack
itemStack
public static final com.mojang.serialization.Codec<ItemCost>
a
CODEC
field_49393
f_zvavzkgq
CODEC
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ItemCost>
b
STREAM_CODEC
field_49394
f_qphcfncz
PACKET_CODEC
PACKET_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, Optional<ItemCost>>
c
OPTIONAL_STREAM_CODEC
field_49395
f_gguzhqie
OPTIONAL_PACKET_CODEC
OPTIONAL_PACKET_CODEC

Constructor summary

ModifierConstructor
public (ItemLike item)
public (ItemLike item, int count)
public (Holder<Item> item, int count, DataComponentExactPredicate components)
public (Holder<Item> item, int count, DataComponentExactPredicate components, ItemStack stack)

Method summary

Modifier and TypeMethod
public ItemCost
a(UnaryOperator<kd$a> arg0)
withComponents(UnaryOperator<DataComponentExactPredicate$Builder> arg0)
method_57554(UnaryOperator<class_9329$class_9330> arg0)
m_dmnorieo(UnaryOperator<C_sdwoobnp$C_zohimgab> arg0)
withComponents(UnaryOperator<ComponentPredicate$Builder> builderCallback)
withComponents(UnaryOperator<C_sdwoobnp$C_zohimgab> builderOperator)
private static ItemStack
a(je<cyz> arg0, int arg1, kd arg2)
createStack(Holder<Item> arg0, int arg1, DataComponentExactPredicate arg2)
method_57553(class_6880<class_1792> arg0, int arg1, class_9329 arg2)
m_drzzrfud(C_cjzoxshv<C_vorddnax> arg0, int arg1, C_sdwoobnp arg2)
createDisplayStack(RegistryEntry<Item> item, int count, ComponentPredicate components)
createStack(Holder<Item> item, int count, C_sdwoobnp arg2)
public boolean
a(czd arg0)
test(ItemStack arg0)
method_57552(class_1799 arg0)
m_rwcrwpnv(C_sddaxwyk arg0)
matches(ItemStack stack)
matches(ItemStack stack)
public Holder<Item>
a()
item()
comp_2424()
m_afqgdbfa()
item()
item()
public int
b()
count()
comp_2425()
m_qjcqkltg()
count()
count()
public DataComponentExactPredicate
c()
components()
comp_2426()
m_isbsseeg()
components()
components()
public ItemStack
d()
itemStack()
comp_2427()
m_irztxmnd()
itemStack()
itemStack()