net.minecraft.world.item.trading

public record ItemCost

dbs
net.minecraft.world.item.trading.ItemCost
net.minecraft.class_9306
net.minecraft.unmapped.C_gqfxurno
net.minecraft.village.TradedItem
net.minecraft.village.TradeableItem
net.minecraft.src.C_313525_
net.minecraft.world.item.trading.ItemCost

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public ItemCost
a(UnaryOperator<ko$a> arg0)
withComponents(UnaryOperator<DataComponentPredicate$Builder> arg0)
method_57554(UnaryOperator<class_9329$class_9330> arg0)
m_dmnorieo(UnaryOperator<C_naseleda$C_qvundqhp> arg0)
withComponents(UnaryOperator<ComponentPredicate$Builder> builderCallback)
withComponents(UnaryOperator<DataComponentPredicate$Builder> builderOperator)
m_322130_(UnaryOperator<C_313761_$C_313508_> arg0)
private static ItemStack
a(jm<cul> arg0, int arg1, ko arg2)
createStack(Holder<Item> arg0, int arg1, DataComponentPredicate arg2)
method_57553(class_6880<class_1792> arg0, int arg1, class_9329 arg2)
m_drzzrfud(C_cjzoxshv<C_vorddnax> arg0, int arg1, C_naseleda arg2)
createDisplayStack(RegistryEntry<Item> item, int count, ComponentPredicate components)
createStack(Holder<Item> item, int count, DataComponentPredicate predicate)
m_324643_(C_203228_<C_1381_> p_329043_, int p_329370_, C_313761_ p_330789_)
public boolean
a(cuq arg0)
test(ItemStack arg0)
method_57552(class_1799 arg0)
m_rwcrwpnv(C_sddaxwyk arg0)
matches(ItemStack stack)
matches(ItemStack stack)
m_320083_(C_1391_ arg0)
public Holder<Item>
a()
item()
comp_2424()
m_afqgdbfa()
item()
item()
f_316448_()
public int
b()
count()
comp_2425()
m_qjcqkltg()
count()
count()
f_314096_()
public DataComponentPredicate
c()
components()
comp_2426()
m_isbsseeg()
components()
components()
f_317105_()
public ItemStack
d()
itemStack()
comp_2427()
m_irztxmnd()
itemStack()
itemStack()
f_315785_()