Class ItemArgument
java.lang.Object
net.minecraft.commands.arguments.item.ItemArgument
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<ItemInput>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Collection<String>private final HolderLookup<Item>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <S> ItemInputstatic ItemArgumentitem(CommandBuildContext p_235280_) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_120968_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_120969_) parse(com.mojang.brigadier.StringReader p_120962_) 
- 
Field Details- 
EXAMPLES
- 
items
 
- 
- 
Constructor Details- 
ItemArgument
 
- 
- 
Method Details- 
item
- 
parsepublic ItemInput parse(com.mojang.brigadier.StringReader p_120962_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<ItemInput>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
getItem
- 
listSuggestionspublic <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_120968_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_120969_) - Specified by:
- listSuggestionsin interface- com.mojang.brigadier.arguments.ArgumentType<ItemInput>
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<ItemInput>
 
 
-