net.minecraft.commands.arguments.item

public class ItemInput

hd
net.minecraft.commands.arguments.item.ItemInput
net.minecraft.class_2290
net.minecraft.command.argument.ItemStackArgument
net.minecraft.src.C_4643_
net.minecraft.commands.arguments.item.ArgumentPredicateItemStack

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
a
ERROR_STACK_TOO_BIG
field_10797
OVERSTACKED_EXCEPTION
f_120972_
private final Holder<Item>
b
item
field_10796
item
f_120973_
private final DataComponentPatch
c
components
field_49570
components
f_316689_

Constructor summary

ModifierConstructor
public (Holder<Item> item, DataComponentPatch components)

Method summary

Modifier and TypeMethod
public Item
a()
getItem()
method_9785()
getItem()
m_120979_()
public ItemStack
a(int arg0, boolean arg1)
createItemStack(int arg0, boolean arg1)
method_9781(int arg0, boolean arg1)
createStack(int amount, boolean checkOverstack)
m_120980_(int p_120982_, boolean arg1)
public String
a(jo$a arg0)
serialize(HolderLookup$Provider arg0)
method_9782(class_7225$class_7874 arg0)
asString(RegistryWrapper$WrapperLookup registries)
m_120988_(C_213466_$C_254607_ arg0)
private String
b(jo$a arg0)
serializeComponents(HolderLookup$Provider arg0)
method_57801(class_7225$class_7874 arg0)
componentsAsString(RegistryWrapper$WrapperLookup registries)
m_319662_(C_213466_$C_254607_ arg0)
private String
b()
getItemName()
method_41967()
getIdString()
m_235284_()