net.minecraft.commands.arguments.item

public class ItemArgument

implements com.mojang.brigadier.arguments.ArgumentType<ItemInput>

ft
net.minecraft.commands.arguments.item.ItemArgument
net.minecraft.class_2287
net.minecraft.command.argument.ItemStackArgumentType
net.minecraft.src.C_4642_
net.minecraft.commands.arguments.item.ArgumentItemStack

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_10790
EXAMPLES
f_120957_
private final HolderLookup<Item>
b
items
field_37970
registryWrapper
f_235276_

Constructor summary

ModifierConstructor
public (CommandBuildContext commandRegistryAccess)

Method summary

Modifier and TypeMethod
public static ItemArgument
a(dl arg0)
item(CommandBuildContext arg0)
method_9776(class_7157 arg0)
itemStack(CommandRegistryAccess commandRegistryAccess)
m_235279_(C_213173_ p_235280_)
public ItemInput
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_9778(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public static <S> ItemInput
a(com.mojang.brigadier.context.CommandContext<S> arg0, String arg1)
getItem(com.mojang.brigadier.context.CommandContext<S> arg0, String arg1)
method_9777(com.mojang.brigadier.context.CommandContext<S> arg0, String arg1)
getItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context, String name)
m_120963_(com.mojang.brigadier.context.CommandContext<S> p_120964_, String p_120965_)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_120969_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()