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 et
intermediary net/minecraft/class_7737
named net/minecraft/command/argument/RegistryEntryPredicateArgumentType
-
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>
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 Summary
ConstructorDescriptionRegistryEntryPredicateArgumentType
(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) -
Method Summary
Modifier 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
Let;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_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Let;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_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType WRONG_TYPE_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Let;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
Let;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
Let;e:Laev;
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
-
RegistryEntryPredicateArgumentType
public RegistryEntryPredicateArgumentType(CommandRegistryAccess registryAccess, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector official <init>
Let;<init>(Ldn;Laev;)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
-
registryEntryPredicate
public static <T> RegistryEntryPredicateArgumentType<T> registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess) - Mappings:
Namespace Name Mixin selector official a
Let;a(Ldn;Laev;)Let;
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;
-
getRegistryEntryPredicate
public 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
Let;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Laev;)Let$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;
-
parse
public RegistryEntryPredicateArgumentType.EntryPredicate<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
Let;a(Lcom/mojang/brigadier/StringReader;)Let$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;
-
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
Let;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:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-