Package net.minecraft.commands.arguments
Class SlotsArgument
java.lang.Object
net.minecraft.commands.arguments.SlotsArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<SlotRange>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final Collection
<String> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SlotRange
getSlots
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_333218_, String p_328819_) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_329445_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_329636_) parse
(com.mojang.brigadier.StringReader p_329039_) static SlotsArgument
slots()
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_SLOT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_SLOT
-
-
Constructor Details
-
SlotsArgument
public SlotsArgument()
-
-
Method Details
-
slots
-
getSlots
public static SlotRange getSlots(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_333218_, String p_328819_) -
parse
public SlotRange parse(com.mojang.brigadier.StringReader p_329039_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<SlotRange>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_329445_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_329636_) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<SlotRange>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<SlotRange>
-