Package net.minecraft.command.argument
Class RegistryEntryPredicateArgumentType<T>
java.lang.Object
net.minecraft.command.argument.RegistryEntryPredicateArgumentType<T>
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<RegistryEntryPredicateArgumentType.EntryPredicate<T>>
public class RegistryEntryPredicateArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<RegistryEntryPredicateArgumentType.EntryPredicate<T>>
- Mappings:
- Namespace - Name - official - er- intermediary - net/minecraft/class_7737- named - net/minecraft/command/argument/RegistryEntryPredicateArgumentType
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static final recordstatic interfacestatic classprivate static final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Collection<String>private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType(package private) final RegistryKey<? extends Registry<T>>private final RegistryWrapper<T>private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
- 
Constructor SummaryConstructorsConstructorDescriptionRegistryEntryPredicateArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> RegistryEntryPredicateArgumentType.EntryPredicate<T>getRegistryEntryPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef) <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> RegistryEntryPredicateArgumentType<T>registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess) 
- 
Field Details- 
EXAMPLES- Mappings:
- Namespace - Name - Mixin selector - official - a- Ler;a:Ljava/util/Collection;- intermediary - field_40417- Lnet/minecraft/class_7737;field_40417:Ljava/util/Collection;- named - EXAMPLES- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
 
- 
NOT_FOUND_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - b- Ler;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- intermediary - field_40418- Lnet/minecraft/class_7737;field_40418:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- named - NOT_FOUND_EXCEPTION- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
 
- 
WRONG_TYPE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType WRONG_TYPE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - c- Ler;c:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- intermediary - field_40419- Lnet/minecraft/class_7737;field_40419:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- named - WRONG_TYPE_EXCEPTION- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;WRONG_TYPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
 
- 
registryWrapper- Mappings:
- Namespace - Name - Mixin selector - official - d- Ler;d:Lhg;- intermediary - field_40420- Lnet/minecraft/class_7737;field_40420:Lnet/minecraft/class_7225;- named - registryWrapper- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
 
- 
registryRef- Mappings:
- Namespace - Name - Mixin selector - official - e- Ler;e:Lacp;- intermediary - field_40421- Lnet/minecraft/class_7737;field_40421:Lnet/minecraft/class_5321;- named - registryRef- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;
 
 
- 
- 
Constructor Details- 
RegistryEntryPredicateArgumentTypepublic RegistryEntryPredicateArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ler;<init>(Ldm;Lacp;)V- intermediary - <init>- Lnet/minecraft/class_7737;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)V- named - <init>- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)V
 
 
- 
- 
Method Details- 
registryEntryPredicatepublic static <T> RegistryEntryPredicateArgumentType<T> registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ler;a(Ldm;Lacp;)Ler;- intermediary - method_45637- Lnet/minecraft/class_7737;method_45637(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7737;- named - registryEntryPredicate- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;registryEntryPredicate(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;
 
- 
getRegistryEntryPredicatepublic static <T> RegistryEntryPredicateArgumentType.EntryPredicate<T> getRegistryEntryPredicate(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 - official - a- Ler;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lacp;)Ler$c;- intermediary - method_45636- Lnet/minecraft/class_7737;method_45636(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;)Lnet/minecraft/class_7737$class_7741;- named - getRegistryEntryPredicate- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;getRegistryEntryPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;
 
- 
parsepublic RegistryEntryPredicateArgumentType.EntryPredicate<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- Ler;a(Lcom/mojang/brigadier/StringReader;)Ler$c;- intermediary - method_45635- Lnet/minecraft/class_7737;method_45635(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7737$class_7741;- named - parse- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;
 
- 
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- Ler;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- intermediary - listSuggestions- Lnet/minecraft/class_7737;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- named - listSuggestions- Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType;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>
 
 
-