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/RegistryPredicateArgumentTypeintermediary net/minecraft/class_7066official fx
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordstatic interfacestatic classprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> (package private) final RegistryKey<? extends Registry<T>> -
Constructor Summary
ConstructorsConstructorDescriptionRegistryPredicateArgumentType(RegistryKey<? extends Registry<T>> registryRef) -
Method Summary
Modifier 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)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLESLnet/minecraft/command/argument/RegistryPredicateArgumentType;EXAMPLES:Ljava/util/Collection;intermediary field_37223Lnet/minecraft/class_7066;field_37223:Ljava/util/Collection;official aLfx;a:Ljava/util/Collection;
-
registryRef
- Mappings:
Namespace Name Mixin selector named registryRefLnet/minecraft/command/argument/RegistryPredicateArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;intermediary field_37226Lnet/minecraft/class_7066;field_37226:Lnet/minecraft/class_5321;official bLfx;b:Lakq;
-
-
Constructor Details
-
RegistryPredicateArgumentType
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/argument/RegistryPredicateArgumentType;<init>(Lnet/minecraft/registry/RegistryKey;)Vintermediary <init>Lnet/minecraft/class_7066;<init>(Lnet/minecraft/class_5321;)Vofficial <init>Lfx;<init>(Lakq;)V
-
-
Method Details
-
registryPredicate
public static <T> RegistryPredicateArgumentType<T> registryPredicate(RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named registryPredicateLnet/minecraft/command/argument/RegistryPredicateArgumentType;registryPredicate(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType;intermediary method_41170Lnet/minecraft/class_7066;method_41170(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7066;official aLfx;a(Lakq;)Lfx;
-
getPredicate
public 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 getPredicateLnet/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_41166Lnet/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 aLfx;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lakq;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lfx$c;
-
parse
public RegistryPredicateArgumentType.RegistryPredicate<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<T>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/RegistryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;intermediary method_41164Lnet/minecraft/class_7066;method_41164(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7066$class_7068;official aLfx;a(Lcom/mojang/brigadier/StringReader;)Lfx$c;
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<T>- Mappings:
Namespace Name Mixin selector named listSuggestionsLnet/minecraft/command/argument/RegistryPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_7066;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;official listSuggestionsLfx;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-