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 named net/minecraft/command/argument/DimensionArgumentType
intermediary net/minecraft/class_2181
official fa
-
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 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
Lfa;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
Lfa;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 interfacecom.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
Lfa;a(Lcom/mojang/brigadier/StringReader;)Lalf;
-
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 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
Lfa;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 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
Lfa;a()Lfa;
-
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
Lfa;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Larf;
-