Class DimensionArgumentType

java.lang.Object
net.minecraft.command.argument.DimensionArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Identifier>

public class DimensionArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • INVALID_DIMENSION_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_DIMENSION_EXCEPTION
  • Constructor Details

    • DimensionArgumentType

      public DimensionArgumentType()
  • Method Details

    • parse

      public Identifier parse​(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions​(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
    • dimension

      public static DimensionArgumentType dimension()
    • getDimensionArgument

      public static ServerWorld getDimensionArgument​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)