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 ec
intermediary net/minecraft/class_2181
named net/minecraft/command/argument/DimensionArgumentType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DimensionArgumentType
static ServerWorld
getDimensionArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lec;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
Lec;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
Lec;a(Lcom/mojang/brigadier/StringReader;)Laew;
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
Lec;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>
-
dimension
- Mappings:
Namespace Name Mixin selector official a
Lec;a()Lec;
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
Lec;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lakq;
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;
-