Package net.minecraft.command.argument
Class RegistryPredicateArgumentType<T>
java.lang.Object
net.minecraft.command.argument.RegistryPredicateArgumentType<T>
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<RegistryPredicateArgumentType.RegistryPredicate<T>>
public class RegistryPredicateArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<RegistryPredicateArgumentType.RegistryPredicate<T>>
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/RegistryPredicateArgumentType- intermediary - net/minecraft/class_7066- official - gb
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static final recordstatic interfacestatic classprivate static final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Collection<String> (package private) final RegistryKey<? extends Registry<T>> 
- 
Constructor SummaryConstructorsConstructorDescriptionRegistryPredicateArgumentType(RegistryKey<? extends Registry<T>> registryRef) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> RegistryPredicateArgumentType.RegistryPredicate<T> getPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException) <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> RegistryPredicateArgumentType<T> registryPredicate(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/RegistryPredicateArgumentType;EXAMPLES:Ljava/util/Collection;- intermediary - field_37223- Lnet/minecraft/class_7066;field_37223:Ljava/util/Collection;- official - a- Lgb;a:Ljava/util/Collection;
 
- 
registryRef- Mappings:
- Namespace - Name - Mixin selector - named - registryRef- Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;- intermediary - field_37226- Lnet/minecraft/class_7066;field_37226:Lnet/minecraft/class_5321;- official - b- Lgb;b:Laku;
 
 
- 
- 
Constructor Details- 
RegistryPredicateArgumentType- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/command/argument/RegistryPredicateArgumentType;<init>(Lnet/minecraft/registry/RegistryKey;)V- intermediary - <init>- Lnet/minecraft/class_7066;<init>(Lnet/minecraft/class_5321;)V- official - <init>- Lgb;<init>(Laku;)V
 
 
- 
- 
Method Details- 
registryPredicatepublic static <T> RegistryPredicateArgumentType<T> registryPredicate(RegistryKey<? extends Registry<T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - named - registryPredicate- Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryPredicate(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType;- intermediary - method_41170- Lnet/minecraft/class_7066;method_41170(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7066;- official - a- Lgb;a(Laku;)Lgb;
 
- 
getPredicatepublic static <T> RegistryPredicateArgumentType.RegistryPredicate<T> getPredicate(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 - getPredicate- Lnet/minecraft/command/argument/RegistryPredicateArgumentType;getPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;- intermediary - method_41166- Lnet/minecraft/class_7066;method_41166(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/class_7066$class_7068;- official - a- Lgb;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laku;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lgb$c;
 
- 
parsepublic RegistryPredicateArgumentType.RegistryPredicate<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/RegistryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;- intermediary - method_41164- Lnet/minecraft/class_7066;method_41164(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7066$class_7068;- official - a- Lgb;a(Lcom/mojang/brigadier/StringReader;)Lgb$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/RegistryPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- intermediary - listSuggestions- Lnet/minecraft/class_7066;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- official - listSuggestions- Lgb;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>
 
 
-