net.minecraft.commands.arguments.item

public class ItemInput

hg
net.minecraft.commands.arguments.item.ItemInput
net.minecraft.class_2290
net.minecraft.command.argument.ItemStackArgument
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
private final Holder<Item>
b
item
field_10796
item
private final DataComponentPatch
c
components
field_49570
components

Constructor summary

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

Method summary

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