Package net.minecraft.command.arguments
Class ItemArgument
java.lang.Object
net.minecraft.command.arguments.ItemArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemInput>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ItemInput
static ItemArgument
item()
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) parse
(com.mojang.brigadier.StringReader p_parse_1_)
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
ItemArgument
public ItemArgument()
-
-
Method Details
-
item
-
parse
public ItemInput parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemInput>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItem
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemInput>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemInput>
-