Class ItemArgument
java.lang.Object
net.minecraft.commands.arguments.item.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_120968_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_120969_) parse
(com.mojang.brigadier.StringReader p_120962_)
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
ItemArgument
public ItemArgument()
-
-
Method Details
-
item
-
parse
public ItemInput parse(com.mojang.brigadier.StringReader p_120962_) 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_120968_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_120969_) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemInput>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemInput>
-