net.minecraft.commands.arguments

public class ResourceSelectorArgument<T>

implements com.mojang.brigadier.arguments.ArgumentType<Collection<Holder$Reference<T>>>

fn
net.minecraft.commands.arguments.ResourceSelectorArgument
net.minecraft.class_10644
net.minecraft.command.argument.RegistrySelectorArgumentType

Field summary

Modifier and TypeField
private static final Collection<String>
b
EXAMPLES
field_56061
EXAMPLES
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
a
ERROR_NO_MATCHES
field_56060
NOT_FOUND_EXCEPTION
final ResourceKey<? extends Registry<T>>
c
registryKey
field_56062
registryRef
private final HolderLookup<T>
d
registryLookup
field_56063
registry

Constructor summary

ModifierConstructor
(CommandBuildContext registries, ResourceKey<? extends Registry<T>> registryRef)

Method summary

Modifier and TypeMethod
public Collection<Holder$Reference<T>>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_66821(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public static <T> Collection<Holder$Reference<T>>
a(com.mojang.brigadier.StringReader arg0, jg<T> arg1)
parse(com.mojang.brigadier.StringReader arg0, HolderLookup<T> arg1)
method_66822(com.mojang.brigadier.StringReader arg0, class_7225<T> arg1)
select(com.mojang.brigadier.StringReader reader, RegistryWrapper<T> registry)
private static String
b(com.mojang.brigadier.StringReader arg0)
readPattern(com.mojang.brigadier.StringReader arg0)
method_66829(com.mojang.brigadier.StringReader arg0)
read(com.mojang.brigadier.StringReader reader)
private static boolean
a(char arg0)
isAllowedPatternCharacter(char arg0)
method_66820(char arg0)
isSelectorChar(char c)
private static String
a(String arg0)
ensureNamespaced(String arg0)
method_66826(String arg0)
addNamespace(String path)
private static boolean
a(String arg0, ale arg1)
matches(String arg0, ResourceLocation arg1)
method_66827(String arg0, class_2960 arg1)
matches(String selector, Identifier id)
public static <T> ResourceSelectorArgument<T>
a(ee arg0, ald<? extends jr<T>> arg1)
resourceSelector(CommandBuildContext arg0, ResourceKey<? extends Registry<T>> arg1)
method_66824(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
selector(CommandRegistryAccess registries, RegistryKey<? extends Registry<T>> registryRef)
public static <T> Collection<Holder$Reference<T>>
a(com.mojang.brigadier.context.CommandContext<ei> arg0, String arg1, ald<? extends jr<T>> arg2)
getSelectedResources(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, ResourceKey<? extends Registry<T>> arg2)
method_66823(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<? extends class_2378<T>> arg2)
getEntries(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<? extends Registry<T>> registryRef)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
public Collection<String>
getExamples()
getExamples()