Class DimensionArgument
java.lang.Object
net.minecraft.commands.arguments.DimensionArgument
- All Implemented Interfaces:
ArgumentType<Identifier>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DynamicCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DimensionArgumentstatic ServerLevelgetDimension(CommandContext<CommandSourceStack> context, String name) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) 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_INVALID_VALUE
-
-
Constructor Details
-
DimensionArgument
public DimensionArgument()
-
-
Method Details
-
parse
- Specified by:
parsein interfaceArgumentType<Identifier>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<Identifier>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<Identifier>
-
dimension
-
getDimension
public static ServerLevel getDimension(CommandContext<CommandSourceStack> context, String name) throws CommandSyntaxException - Throws:
CommandSyntaxException
-