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
named net/minecraft/command/argument/DimensionArgumentType
intermediary net/minecraft/class_2181
official fh
  • Field Details

    • EXAMPLES

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

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_DIMENSION_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named INVALID_DIMENSION_EXCEPTION Lnet/minecraft/command/argument/DimensionArgumentType;INVALID_DIMENSION_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_9845 Lnet/minecraft/class_2181;field_9845:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official b Lfh;b: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
      named parse Lnet/minecraft/command/argument/DimensionArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Identifier;
      intermediary method_9287 Lnet/minecraft/class_2181;method_9287(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2960;
      official a Lfh;a(Lcom/mojang/brigadier/StringReader;)Lalz;
    • 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
      named listSuggestions Lnet/minecraft/command/argument/DimensionArgumentType;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;
      official listSuggestions Lfh;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
      named dimension Lnet/minecraft/command/argument/DimensionArgumentType;dimension()Lnet/minecraft/command/argument/DimensionArgumentType;
      intermediary method_9288 Lnet/minecraft/class_2181;method_9288()Lnet/minecraft/class_2181;
      official a Lfh;a()Lfh;
    • 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
      named getDimensionArgument Lnet/minecraft/command/argument/DimensionArgumentType;getDimensionArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/server/world/ServerWorld;
      intermediary method_9289 Lnet/minecraft/class_2181;method_9289(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_3218;
      official a Lfh;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lash;