Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static Map<String,Integer> |
slotNamesToSlotCommandId |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_SLOT_EXCEPTION |
Constructor and Description |
---|
ItemSlotArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static int |
getItemSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
static ItemSlotArgumentType |
itemSlot() |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
Integer |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_SLOT_EXCEPTION
public static ItemSlotArgumentType itemSlot()
public static int getItemSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public Integer parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<Integer>
com.mojang.brigadier.exceptions.CommandSyntaxException
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<Integer>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<Integer>