Package net.minecraft.command.argument
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 di
intermediary net/minecraft/class_2181
named net/minecraft/command/argument/DimensionArgumentType
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
INVALID_DIMENSION_EXCEPTION
-
Constructor Summary
Constructors Constructor Description DimensionArgumentType()
-
Method Summary
Modifier and Type Method Description static DimensionArgumentType
dimension()
static ServerWorld
getDimensionArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
Collection<String>
getExamples()
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
Identifier
parse(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Ldi;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
Ldi;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 interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldi;a(Lcom/mojang/brigadier/StringReader;)Lwb;
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 interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Ldi;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
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Identifier>
- Mappings:
Namespace Name Mixin selector official getExamples
Ldi;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_2181;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/DimensionArgumentType;getExamples()Ljava/util/Collection;
-
dimension
- Mappings:
Namespace Name Mixin selector official a
Ldi;a()Ldi;
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
Ldi;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Laav;
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;
-