Package net.minecraft.commands.arguments
Class SlotArgument
java.lang.Object
net.minecraft.commands.arguments.SlotArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Integer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetSlot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder) parse(com.mojang.brigadier.StringReader pReader) static SlotArgumentslot()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_SLOT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_SLOT -
ERROR_ONLY_SINGLE_SLOT_ALLOWED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ONLY_SINGLE_SLOT_ALLOWED
-
-
Constructor Details
-
SlotArgument
public SlotArgument()
-
-
Method Details
-
slot
-
getSlot
public static int getSlot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
parse
public Integer parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
-