net.minecraft.world.item.trading

public record ItemCost

dgd
net.minecraft.world.item.trading.ItemCost
net.minecraft.class_9306
net.minecraft.village.TradedItem
net.minecraft.world.item.trading.ItemCost

Field summary

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

Constructor summary

ModifierConstructor
public (ItemLike item)
public (ItemLike item, int count)
public (Holder<Item> item, int count, DataComponentPredicate components)
public (Holder<Item> arg0, int arg1, DataComponentPredicate arg2, ItemStack arg3)

Method summary

Modifier and TypeMethod
public ItemCost
a(UnaryOperator<ks$a> arg0)
withComponents(UnaryOperator<DataComponentPredicate$Builder> arg0)
method_57554(UnaryOperator<class_9329$class_9330> arg0)
withComponents(UnaryOperator<ComponentPredicate$Builder> builderCallback)
private static ItemStack
a(jq<cxl> arg0, int arg1, ks arg2)
createStack(Holder<Item> arg0, int arg1, DataComponentPredicate arg2)
method_57553(class_6880<class_1792> arg0, int arg1, class_9329 arg2)
createDisplayStack(RegistryEntry<Item> item, int count, ComponentPredicate components)
public boolean
a(cxp arg0)
test(ItemStack arg0)
method_57552(class_1799 arg0)
matches(ItemStack stack)
public Holder<Item>
a()
item()
comp_2424()
item()
public int
b()
count()
comp_2425()
count()
public DataComponentPredicate
c()
components()
comp_2426()
components()
public ItemStack
d()
itemStack()
comp_2427()
itemStack()