Package net.minecraft.command.argument
Class RegistryEntryReferenceArgumentType<T>
java.lang.Object
net.minecraft.command.argument.RegistryEntryReferenceArgumentType<T>
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<RegistryEntry.Reference<T>>
public class RegistryEntryReferenceArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntry.Reference<T>>
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/RegistryEntryReferenceArgumentType- intermediary - net/minecraft/class_7733- official - fw
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Collection<String> static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypestatic final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType(package private) final RegistryKey<? extends Registry<T>> private final RegistryWrapper<T> 
- 
Constructor SummaryConstructorsConstructorDescriptionRegistryEntryReferenceArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic RegistryEntry.Reference<ConfiguredFeature<?, ?>> getConfiguredFeature(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<Enchantment> getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) getEntityAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<EntityType<?>> getEntityType(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static <T> RegistryEntry.Reference<T> getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef) static RegistryEntry.Reference<StatusEffect> getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<Structure> getStructure(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference<EntityType<?>> getSummonableEntityType(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> RegistryEntryReferenceArgumentType<T> registryEntry(CommandRegistryAccess registryAccess, 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/RegistryEntryReferenceArgumentType;EXAMPLES:Ljava/util/Collection;- intermediary - field_40403- Lnet/minecraft/class_7733;field_40403:Ljava/util/Collection;- official - c- Lfw;c:Ljava/util/Collection;
 
- 
NOT_SUMMONABLE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NOT_SUMMONABLE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NOT_SUMMONABLE_EXCEPTION- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;NOT_SUMMONABLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_40404- Lnet/minecraft/class_7733;field_40404:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - d- Lfw;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
NOT_FOUND_EXCEPTIONpublic static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NOT_FOUND_EXCEPTION- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- intermediary - field_40401- Lnet/minecraft/class_7733;field_40401:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- official - a- Lfw;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
 
- 
INVALID_TYPE_EXCEPTIONpublic static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType INVALID_TYPE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - INVALID_TYPE_EXCEPTION- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;INVALID_TYPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- intermediary - field_40402- Lnet/minecraft/class_7733;field_40402:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- official - b- Lfw;b:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
 
- 
registryRef- Mappings:
- Namespace - Name - Mixin selector - named - registryRef- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;- intermediary - field_40405- Lnet/minecraft/class_7733;field_40405:Lnet/minecraft/class_5321;- official - e- Lfw;e:Laku;
 
- 
registryWrapper- Mappings:
- Namespace - Name - Mixin selector - named - registryWrapper- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;- intermediary - field_40406- Lnet/minecraft/class_7733;field_40406:Lnet/minecraft/class_7225;- official - f- Lfw;f:Ljt;
 
 
- 
- 
Constructor Details- 
RegistryEntryReferenceArgumentTypepublic RegistryEntryReferenceArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)V- intermediary - <init>- Lnet/minecraft/class_7733;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)V- official - <init>- Lfw;<init>(Let;Laku;)V
 
 
- 
- 
Method Details- 
registryEntrypublic static <T> RegistryEntryReferenceArgumentType<T> registryEntry(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - named - registryEntry- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;registryEntry(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;- intermediary - method_45603- Lnet/minecraft/class_7733;method_45603(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7733;- official - a- Lfw;a(Let;Laku;)Lfw;
 
- 
getRegistryEntrypublic static <T> RegistryEntry.Reference<T> getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getRegistryEntry- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getRegistryEntry(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45602- Lnet/minecraft/class_7733;method_45602(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;- official - a- Lfw;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laku;)Ljr$c;
 
- 
getEntityAttributepublic static RegistryEntry.Reference<EntityAttribute> getEntityAttribute(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 - getEntityAttribute- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getEntityAttribute(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45601- Lnet/minecraft/class_7733;method_45601(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - a- Lfw;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljr$c;
 
- 
getConfiguredFeaturepublic static RegistryEntry.Reference<ConfiguredFeature<?,?>> getConfiguredFeature(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 - getConfiguredFeature- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getConfiguredFeature(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45607- Lnet/minecraft/class_7733;method_45607(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - b- Lfw;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljr$c;
 
- 
getStructurepublic static RegistryEntry.Reference<Structure> getStructure(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 - getStructure- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getStructure(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45608- Lnet/minecraft/class_7733;method_45608(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - c- Lfw;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljr$c;
 
- 
getEntityTypepublic static RegistryEntry.Reference<EntityType<?>> getEntityType(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 - getEntityType- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getEntityType(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45609- Lnet/minecraft/class_7733;method_45609(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - d- Lfw;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljr$c;
 
- 
getSummonableEntityTypepublic static RegistryEntry.Reference<EntityType<?>> getSummonableEntityType(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 - getSummonableEntityType- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getSummonableEntityType(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45610- Lnet/minecraft/class_7733;method_45610(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - e- Lfw;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljr$c;
 
- 
getStatusEffectpublic static RegistryEntry.Reference<StatusEffect> getStatusEffect(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 - getStatusEffect- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getStatusEffect(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45611- Lnet/minecraft/class_7733;method_45611(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - f- Lfw;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljr$c;
 
- 
getEnchantmentpublic static RegistryEntry.Reference<Enchantment> getEnchantment(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 - getEnchantment- Lnet/minecraft/command/argument/RegistryEntryReferenceArgumentType;getEnchantment(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45612- Lnet/minecraft/class_7733;method_45612(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880$class_6883;- official - g- Lfw;g(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljr$c;
 
- 
parsepublic RegistryEntry.Reference<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/RegistryEntryReferenceArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_45600- Lnet/minecraft/class_7733;method_45600(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_6880$class_6883;- official - a- Lfw;a(Lcom/mojang/brigadier/StringReader;)Ljr$c;
 
- 
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/RegistryEntryReferenceArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- intermediary - listSuggestions- Lnet/minecraft/class_7733;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- official - listSuggestions- Lfw;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>
 
 
-