Package net.minecraft.command.argument
Class RegistryKeyArgumentType<T>
java.lang.Object
net.minecraft.command.argument.RegistryKeyArgumentType<T>
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<RegistryKey<T>>
public class RegistryKeyArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<RegistryKey<T>>
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/RegistryKeyArgumentType- intermediary - net/minecraft/class_7079- official - fk
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final Collection<String> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType(package private) final RegistryKey<? extends Registry<T>> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic AdvancementEntrygetAdvancementEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<ConfiguredFeature<?, ?>> getConfiguredFeatureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static <T> RegistryKey<T> getKey(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) static RecipeEntry<?> getRecipeEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) private static <T> Registry<T> getRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef) private static <T> RegistryEntry.Reference<T> getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) static RegistryEntry.Reference<Structure> getStructureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<StructurePool> getStructurePoolEntry(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) static <T> RegistryKeyArgumentType<T> registryKey(RegistryKey<? extends Registry<T>> registryRef) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentTypeparse
- 
Field Details- 
EXAMPLES- Mappings:
- Namespace - Name - Mixin selector - named - EXAMPLES- Lnet/minecraft/command/argument/RegistryKeyArgumentType;EXAMPLES:Ljava/util/Collection;- intermediary - field_37269- Lnet/minecraft/class_7079;field_37269:Ljava/util/Collection;- official - a- Lfk;a:Ljava/util/Collection;
 
- 
INVALID_FEATURE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_FEATURE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - INVALID_FEATURE_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;INVALID_FEATURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_37271- Lnet/minecraft/class_7079;field_37271:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - b- Lfk;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
INVALID_STRUCTURE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_STRUCTURE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - INVALID_STRUCTURE_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;INVALID_STRUCTURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_39191- Lnet/minecraft/class_7079;field_39191:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - c- Lfk;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
INVALID_JIGSAW_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_JIGSAW_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - INVALID_JIGSAW_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;INVALID_JIGSAW_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_39192- Lnet/minecraft/class_7079;field_39192:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - d- Lfk;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
RECIPE_NOT_FOUND_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType RECIPE_NOT_FOUND_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - RECIPE_NOT_FOUND_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;RECIPE_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_54825- Lnet/minecraft/class_7079;field_54825:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - e- Lfk;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
ADVANCEMENT_NOT_FOUND_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ADVANCEMENT_NOT_FOUND_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - ADVANCEMENT_NOT_FOUND_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;ADVANCEMENT_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_54826- Lnet/minecraft/class_7079;field_54826:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - f- Lfk;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
registryRef- Mappings:
- Namespace - Name - Mixin selector - named - registryRef- Lnet/minecraft/command/argument/RegistryKeyArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;- intermediary - field_37272- Lnet/minecraft/class_7079;field_37272:Lnet/minecraft/class_5321;- official - g- Lfk;g:Lalq;
 
 
- 
- 
Constructor Details- 
RegistryKeyArgumentType- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/command/argument/RegistryKeyArgumentType;<init>(Lnet/minecraft/registry/RegistryKey;)V- intermediary - <init>- Lnet/minecraft/class_7079;<init>(Lnet/minecraft/class_5321;)V- official - <init>- Lfk;<init>(Lalq;)V
 
 
- 
- 
Method Details- 
registryKeypublic static <T> RegistryKeyArgumentType<T> registryKey(RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - named - registryKey- Lnet/minecraft/command/argument/RegistryKeyArgumentType;registryKey(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryKeyArgumentType;- intermediary - method_41224- Lnet/minecraft/class_7079;method_41224(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7079;- official - a- Lfk;a(Lalq;)Lfk;
 
- 
getKeypublic static <T> RegistryKey<T> getKey(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getKey- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getKey(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/registry/RegistryKey;- intermediary - method_41220- Lnet/minecraft/class_7079;method_41220(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/class_5321;- official - a- Lfk;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lalq;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lalq;
 
- 
getRegistryprivate static <T> Registry<T> getRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - named - getRegistry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getRegistry(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/Registry;- intermediary - method_41221- Lnet/minecraft/class_7079;method_41221(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;- official - a- Lfk;a(Lcom/mojang/brigadier/context/CommandContext;Lalq;)Ljt;
 
- 
getRegistryEntryprivate static <T> RegistryEntry.Reference<T> getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getRegistryEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getRegistryEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_43777- Lnet/minecraft/class_7079;method_43777(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/class_6880$class_6883;- official - b- Lfk;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lalq;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Ljg$c;
 
- 
getConfiguredFeatureEntrypublic static RegistryEntry.Reference<ConfiguredFeature<?,?>> getConfiguredFeatureEntry(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 - getConfiguredFeatureEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getConfiguredFeatureEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_41225- Lnet/minecraft/class_7079;method_41225(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - a- Lfk;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljg$c;
 
- 
getStructureEntrypublic static RegistryEntry.Reference<Structure> getStructureEntry(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 - getStructureEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getStructureEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_43779- Lnet/minecraft/class_7079;method_43779(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - b- Lfk;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljg$c;
 
- 
getStructurePoolEntrypublic static RegistryEntry.Reference<StructurePool> getStructurePoolEntry(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 - getStructurePoolEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getStructurePoolEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_43780- Lnet/minecraft/class_7079;method_43780(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - c- Lfk;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljg$c;
 
- 
getRecipeEntrypublic static RecipeEntry<?> getRecipeEntry(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 - getRecipeEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getRecipeEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/recipe/RecipeEntry;- intermediary - method_64866- Lnet/minecraft/class_7079;method_64866(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_8786;- official - d- Lfk;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldfg;
 
- 
getAdvancementEntrypublic static AdvancementEntry getAdvancementEntry(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 - getAdvancementEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getAdvancementEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/advancement/AdvancementEntry;- intermediary - method_64867- Lnet/minecraft/class_7079;method_64867(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_8779;- official - e- Lfk;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Laj;
 
- 
parsepublic RegistryKey<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<T>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - parse- Lnet/minecraft/command/argument/RegistryKeyArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/registry/RegistryKey;- intermediary - method_41218- Lnet/minecraft/class_7079;method_41218(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_5321;- official - a- Lfk;a(Lcom/mojang/brigadier/StringReader;)Lalq;
 
- 
listSuggestionspublic <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
- listSuggestionsin interface- com.mojang.brigadier.arguments.ArgumentType<T>
- Mappings:
- Namespace - Name - Mixin selector - named - listSuggestions- Lnet/minecraft/command/argument/RegistryKeyArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- intermediary - listSuggestions- Lnet/minecraft/class_7079;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- official - listSuggestions- Lfk;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<T>
 
 
-