public class SlotArgument
extends java.lang.Object
implements com.mojang.brigadier.arguments.ArgumentType<java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
private static java.util.Map<java.lang.String,java.lang.Integer> |
KNOWN_SLOTS |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
SLOT_UNKNOWN |
Constructor and Description |
---|
SlotArgument() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static int |
getSlot(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
java.lang.Integer |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
static SlotArgument |
slot() |
private static final java.util.Collection<java.lang.String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType SLOT_UNKNOWN
private static final java.util.Map<java.lang.String,java.lang.Integer> KNOWN_SLOTS
public static SlotArgument slot()
public static int getSlot(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name)
public java.lang.Integer parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<java.lang.Integer>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<java.lang.Integer>
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<java.lang.Integer>