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>
Mappings:
Namespace Name
official dz
intermediary net/minecraft/class_2181
named net/minecraft/command/argument/DimensionArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official a Ldz;a:Ljava/util/Collection;
      intermediary field_9844 Lnet/minecraft/class_2181;field_9844:Ljava/util/Collection;
      named EXAMPLES Lnet/minecraft/command/argument/DimensionArgumentType;EXAMPLES:Ljava/util/Collection;
    • INVALID_DIMENSION_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_DIMENSION_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Ldz;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_9845 Lnet/minecraft/class_2181;field_9845:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named INVALID_DIMENSION_EXCEPTION Lnet/minecraft/command/argument/DimensionArgumentType;INVALID_DIMENSION_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • 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
      Mappings:
      Namespace Name Mixin selector
      official a Ldz;a(Lcom/mojang/brigadier/StringReader;)Labb;
      intermediary method_9287 Lnet/minecraft/class_2181;method_9287(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2960;
      named parse Lnet/minecraft/command/argument/DimensionArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Identifier;
    • 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>
      Mappings:
      Namespace Name Mixin selector
      official listSuggestions Ldz;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_2181;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named listSuggestions Lnet/minecraft/command/argument/DimensionArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • getExamples

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

      public static DimensionArgumentType dimension()
      Mappings:
      Namespace Name Mixin selector
      official a Ldz;a()Ldz;
      intermediary method_9288 Lnet/minecraft/class_2181;method_9288()Lnet/minecraft/class_2181;
      named dimension Lnet/minecraft/command/argument/DimensionArgumentType;dimension()Lnet/minecraft/command/argument/DimensionArgumentType;
    • getDimensionArgument

      public static ServerWorld getDimensionArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ldz;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lagg;
      intermediary method_9289 Lnet/minecraft/class_2181;method_9289(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_3218;
      named getDimensionArgument Lnet/minecraft/command/argument/DimensionArgumentType;getDimensionArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/server/world/ServerWorld;