Package net.minecraft.command.argument
Class RegistrySelectorArgumentType<T>
java.lang.Object
net.minecraft.command.argument.RegistrySelectorArgumentType<T>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Collection<RegistryEntry.Reference<T>>>
public class RegistrySelectorArgumentType<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Collection<RegistryEntry.Reference<T>>>
- Mappings:
Namespace Name named net/minecraft/command/argument/RegistrySelectorArgumentTypeintermediary net/minecraft/class_10644official fp
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate final RegistryWrapper<T> (package private) final RegistryKey<? extends Registry<T>> -
Constructor Summary
ConstructorsConstructorDescriptionRegistrySelectorArgumentType(CommandRegistryAccess registries, RegistryKey<? extends Registry<T>> registryRef) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringaddNamespace(String path) static <T> Collection<RegistryEntry.Reference<T>> getEntries(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<? extends Registry<T>> registryRef) private static booleanisSelectorChar(char c) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) private static booleanmatches(String selector, Identifier id) parse(com.mojang.brigadier.StringReader stringReader) private static Stringread(com.mojang.brigadier.StringReader reader) static <T> Collection<RegistryEntry.Reference<T>> select(com.mojang.brigadier.StringReader reader, RegistryWrapper<T> registry) static <T> RegistrySelectorArgumentType<T> selector(CommandRegistryAccess registries, RegistryKey<? extends Registry<T>> registryRef) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLESLnet/minecraft/command/argument/RegistrySelectorArgumentType;EXAMPLES:Ljava/util/Collection;intermediary field_56061Lnet/minecraft/class_10644;field_56061:Ljava/util/Collection;official bLfp;b:Ljava/util/Collection;
-
NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector named NOT_FOUND_EXCEPTIONLnet/minecraft/command/argument/RegistrySelectorArgumentType;NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;intermediary field_56060Lnet/minecraft/class_10644;field_56060:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;official aLfp;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
registryRef
- Mappings:
Namespace Name Mixin selector named registryRefLnet/minecraft/command/argument/RegistrySelectorArgumentType;registryRef:Lnet/minecraft/registry/RegistryKey;intermediary field_56062Lnet/minecraft/class_10644;field_56062:Lnet/minecraft/class_5321;official cLfp;c:Lalq;
-
registry
- Mappings:
Namespace Name Mixin selector named registryLnet/minecraft/command/argument/RegistrySelectorArgumentType;registry:Lnet/minecraft/registry/RegistryWrapper;intermediary field_56063Lnet/minecraft/class_10644;field_56063:Lnet/minecraft/class_7225;official dLfp;d:Lji;
-
-
Constructor Details
-
RegistrySelectorArgumentType
RegistrySelectorArgumentType(CommandRegistryAccess registries, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/argument/RegistrySelectorArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Vintermediary <init>Lnet/minecraft/class_10644;<init>(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Vofficial <init>Lfp;<init>(Leg;Lalq;)V
-
-
Method Details
-
parse
public Collection<RegistryEntry.Reference<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/RegistrySelectorArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/util/Collection;intermediary method_66821Lnet/minecraft/class_10644;method_66821(Lcom/mojang/brigadier/StringReader;)Ljava/util/Collection;official aLfp;a(Lcom/mojang/brigadier/StringReader;)Ljava/util/Collection;
-
select
public static <T> Collection<RegistryEntry.Reference<T>> select(com.mojang.brigadier.StringReader reader, RegistryWrapper<T> registry) - Mappings:
Namespace Name Mixin selector named selectLnet/minecraft/command/argument/RegistrySelectorArgumentType;select(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/registry/RegistryWrapper;)Ljava/util/Collection;intermediary method_66822Lnet/minecraft/class_10644;method_66822(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_7225;)Ljava/util/Collection;official aLfp;a(Lcom/mojang/brigadier/StringReader;Lji;)Ljava/util/Collection;
-
read
- Mappings:
Namespace Name Mixin selector named readLnet/minecraft/command/argument/RegistrySelectorArgumentType;read(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;intermediary method_66829Lnet/minecraft/class_10644;method_66829(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;official bLfp;b(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;
-
isSelectorChar
private static boolean isSelectorChar(char c) - Mappings:
Namespace Name Mixin selector named isSelectorCharLnet/minecraft/command/argument/RegistrySelectorArgumentType;isSelectorChar(C)Zintermediary method_66820Lnet/minecraft/class_10644;method_66820(C)Zofficial aLfp;a(C)Z
-
addNamespace
- Mappings:
Namespace Name Mixin selector named addNamespaceLnet/minecraft/command/argument/RegistrySelectorArgumentType;addNamespace(Ljava/lang/String;)Ljava/lang/String;intermediary method_66826Lnet/minecraft/class_10644;method_66826(Ljava/lang/String;)Ljava/lang/String;official aLfp;a(Ljava/lang/String;)Ljava/lang/String;
-
matches
- Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/command/argument/RegistrySelectorArgumentType;matches(Ljava/lang/String;Lnet/minecraft/util/Identifier;)Zintermediary method_66827Lnet/minecraft/class_10644;method_66827(Ljava/lang/String;Lnet/minecraft/class_2960;)Zofficial aLfp;a(Ljava/lang/String;Lalr;)Z
-
selector
public static <T> RegistrySelectorArgumentType<T> selector(CommandRegistryAccess registries, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named selectorLnet/minecraft/command/argument/RegistrySelectorArgumentType;selector(Lnet/minecraft/command/CommandRegistryAccess;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/command/argument/RegistrySelectorArgumentType;intermediary method_66824Lnet/minecraft/class_10644;method_66824(Lnet/minecraft/class_7157;Lnet/minecraft/class_5321;)Lnet/minecraft/class_10644;official aLfp;a(Leg;Lalq;)Lfp;
-
getEntries
public static <T> Collection<RegistryEntry.Reference<T>> getEntries(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named getEntriesLnet/minecraft/command/argument/RegistrySelectorArgumentType;getEntries(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Collection;intermediary method_66823Lnet/minecraft/class_10644;method_66823(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;)Ljava/util/Collection;official aLfp;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lalq;)Ljava/util/Collection;
-
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/RegistrySelectorArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_10644;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;official listSuggestionsLfp;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>
-