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 official eu
intermediary net/minecraft/class_7066
named net/minecraft/command/argument/RegistryPredicateArgumentType
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
static interface
static class
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
(package private) final RegistryKey<? extends Registry<T>>
-
Constructor Summary
ConstructorDescriptionRegistryPredicateArgumentType
(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 official a
Leu;a:Ljava/util/Collection;
intermediary field_37223
Lnet/minecraft/class_7066;field_37223:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
-
registryRef
- Mappings:
Namespace Name Mixin selector official b
Leu;b:Laev;
intermediary field_37226
Lnet/minecraft/class_7066;field_37226:Lnet/minecraft/class_5321;
named registryRef
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;
-
-
Constructor Details
-
RegistryPredicateArgumentType
- Mappings:
Namespace Name Mixin selector official <init>
Leu;<init>(Laev;)V
intermediary <init>
Lnet/minecraft/class_7066;<init>(Lnet/minecraft/class_5321;)V
named <init>
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;<init>(Lnet/minecraft/registry/RegistryKey;)V
-
-
Method Details
-
registryPredicate
public static <T> RegistryPredicateArgumentType<T> registryPredicate(RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector official a
Leu;a(Laev;)Leu;
intermediary method_41170
Lnet/minecraft/class_7066;method_41170(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7066;
named registryPredicate
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;registryPredicate(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType;
-
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 official a
Leu;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laev;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Leu$c;
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;
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;
-
parse
public RegistryPredicateArgumentType.RegistryPredicate<T> parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Leu;a(Lcom/mojang/brigadier/StringReader;)Leu$c;
intermediary method_41164
Lnet/minecraft/class_7066;method_41164(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_7066$class_7068;
named parse
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;
-
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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Leu;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;
named listSuggestions
Lnet/minecraft/command/argument/RegistryPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-