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 - official - ep- intermediary - net/minecraft/class_7079- named - net/minecraft/command/argument/RegistryKeyArgumentType
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate 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.DynamicCommandExceptionType(package private) final RegistryKey<? extends Registry<T>>private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic EntityAttributegetAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry<ConfiguredFeature<?,?>> getConfiguredFeatureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) private static <T> RegistryKey<T>getKey(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) private static <T> Registry<T>getRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef) private static <T> RegistryEntry<T>getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) static RegistryEntry<Structure>getStructureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry<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) 
- 
Field Details- 
EXAMPLES- Mappings:
- Namespace - Name - Mixin selector - official - a- Lep;a:Ljava/util/Collection;- intermediary - field_37269- Lnet/minecraft/class_7079;field_37269:Ljava/util/Collection;- named - EXAMPLES- Lnet/minecraft/command/argument/RegistryKeyArgumentType;EXAMPLES:Ljava/util/Collection;
 
- 
UNKNOWN_ATTRIBUTE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ATTRIBUTE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - b- Lep;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_37270- Lnet/minecraft/class_7079;field_37270:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- named - UNKNOWN_ATTRIBUTE_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;UNKNOWN_ATTRIBUTE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
INVALID_FEATURE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_FEATURE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - c- Lep;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_37271- Lnet/minecraft/class_7079;field_37271:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- named - INVALID_FEATURE_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;INVALID_FEATURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
INVALID_STRUCTURE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_STRUCTURE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - d- Lep;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_39191- Lnet/minecraft/class_7079;field_39191:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- named - INVALID_STRUCTURE_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;INVALID_STRUCTURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
INVALID_JIGSAW_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_JIGSAW_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - e- Lep;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_39192- Lnet/minecraft/class_7079;field_39192:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- named - INVALID_JIGSAW_EXCEPTION- Lnet/minecraft/command/argument/RegistryKeyArgumentType;INVALID_JIGSAW_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
registryRef- Mappings:
- Namespace - Name - Mixin selector - official - f- Lep;f:Laba;- intermediary - field_37272- Lnet/minecraft/class_7079;field_37272:Lnet/minecraft/class_5321;- named - registryRef- Lnet/minecraft/command/argument/RegistryKeyArgumentType;registryRef:Lnet/minecraft/util/registry/RegistryKey;
 
 
- 
- 
Constructor Details- 
RegistryKeyArgumentType- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lep;<init>(Laba;)V- intermediary - <init>- Lnet/minecraft/class_7079;<init>(Lnet/minecraft/class_5321;)V- named - <init>- Lnet/minecraft/command/argument/RegistryKeyArgumentType;<init>(Lnet/minecraft/util/registry/RegistryKey;)V
 
 
- 
- 
Method Details- 
registryKeypublic static <T> RegistryKeyArgumentType<T> registryKey(RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lep;a(Laba;)Lep;- intermediary - method_41224- Lnet/minecraft/class_7079;method_41224(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7079;- named - registryKey- Lnet/minecraft/command/argument/RegistryKeyArgumentType;registryKey(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryKeyArgumentType;
 
- 
getKeyprivate 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 - official - a- Lep;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laba;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Laba;- 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;- named - getKey- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getKey(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/util/registry/RegistryKey;
 
- 
getRegistryprivate static <T> Registry<T> getRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lep;a(Lcom/mojang/brigadier/context/CommandContext;Laba;)Lhm;- intermediary - method_41221- Lnet/minecraft/class_7079;method_41221(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;- named - getRegistry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getRegistry(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/Registry;
 
- 
getRegistryEntryprivate static <T> RegistryEntry<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 - official - b- Lep;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laba;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lhc;- 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;- named - getRegistryEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getRegistryEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/util/registry/RegistryEntry;
 
- 
getAttributepublic static EntityAttribute getAttribute(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- Lep;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbcy;- intermediary - method_41219- Lnet/minecraft/class_7079;method_41219(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1320;- named - getAttribute- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getAttribute(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/entity/attribute/EntityAttribute;
 
- 
getConfiguredFeatureEntrypublic static RegistryEntry<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 - official - b- Lep;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhc;- intermediary - method_41225- Lnet/minecraft/class_7079;method_41225(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;- named - getConfiguredFeatureEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getConfiguredFeatureEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/registry/RegistryEntry;
 
- 
getStructureEntrypublic static RegistryEntry<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 - official - c- Lep;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhc;- intermediary - method_43779- Lnet/minecraft/class_7079;method_43779(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;- named - getStructureEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getStructureEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/registry/RegistryEntry;
 
- 
getStructurePoolEntrypublic static RegistryEntry<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 - official - d- Lep;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lhc;- intermediary - method_43780- Lnet/minecraft/class_7079;method_43780(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;- named - getStructurePoolEntry- Lnet/minecraft/command/argument/RegistryKeyArgumentType;getStructurePoolEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/registry/RegistryEntry;
 
- 
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 - official - a- Lep;a(Lcom/mojang/brigadier/StringReader;)Laba;- intermediary - method_41218- Lnet/minecraft/class_7079;method_41218(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_5321;- named - parse- Lnet/minecraft/command/argument/RegistryKeyArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/registry/RegistryKey;
 
- 
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 - official - listSuggestions- Lep;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;- named - listSuggestions- Lnet/minecraft/command/argument/RegistryKeyArgumentType;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>
 
 
-