Class SlotArgument
java.lang.Object
net.minecraft.commands.arguments.SlotArgument
- All Implemented Interfaces:
ArgumentType<Integer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DynamicCommandExceptionTypeprivate static final DynamicCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetSlot(CommandContext<CommandSourceStack> context, String name) listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) parse(StringReader reader) static SlotArgumentslot()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_SLOT
-
ERROR_ONLY_SINGLE_SLOT_ALLOWED
-
-
Constructor Details
-
SlotArgument
public SlotArgument()
-
-
Method Details
-
slot
-
getSlot
-
parse
- Specified by:
parsein interfaceArgumentType<Integer>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<Integer>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<Integer>
-