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_332720_, String p_332685_) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_332783_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_332759_) parse
(com.mojang.brigadier.StringReader p_332649_) 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_332720_, String p_332685_) -
parse
public SlotRange parse(com.mojang.brigadier.StringReader p_332649_) 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_332783_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_332759_) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<SlotRange>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<SlotRange>
-