public class ItemStackArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
| Modifier and Type | Field and Description |
|---|---|
private static Collection<String> |
EXAMPLES |
| Constructor and Description |
|---|
ItemStackArgumentType() |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getExamples() |
static <S> ItemStackArgument |
getItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context,
String name) |
static ItemStackArgumentType |
itemStack() |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
ItemStackArgument |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
public static ItemStackArgumentType itemStack()
public ItemStackArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic static <S> ItemStackArgument getItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context, String name)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>public Collection<String> getExamples()
getExamples in interface com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>