net.minecraft.commands.arguments

public class ResourceSelectorArgument<T>

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

gc
net.minecraft.commands.arguments.ResourceSelectorArgument
net.minecraft.class_10644
net.minecraft.class_10644

Field summary

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

Constructor summary

ModifierConstructor
(CommandBuildContext arg0, ResourceKey<? extends Registry<T>> arg1)

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, ju<T> arg1)
parse(com.mojang.brigadier.StringReader arg0, HolderLookup<T> arg1)
method_66822(com.mojang.brigadier.StringReader arg0, class_7225<T> arg1)
method_66822(com.mojang.brigadier.StringReader arg0, RegistryWrapper<T> arg1)
private static String
b(com.mojang.brigadier.StringReader arg0)
readPattern(com.mojang.brigadier.StringReader arg0)
method_66829(com.mojang.brigadier.StringReader arg0)
method_66829(com.mojang.brigadier.StringReader arg0)
private static boolean
a(char arg0)
isAllowedPatternCharacter(char arg0)
method_66820(char arg0)
method_66820(char arg0)
private static String
a(String arg0)
ensureNamespaced(String arg0)
method_66826(String arg0)
method_66826(String arg0)
private static boolean
a(String arg0, ald arg1)
matches(String arg0, ResourceLocation arg1)
method_66827(String arg0, class_2960 arg1)
method_66827(String arg0, Identifier arg1)
public static <T> ResourceSelectorArgument<T>
a(et arg0, alc<? extends kf<T>> arg1)
resourceSelector(CommandBuildContext arg0, ResourceKey<? extends Registry<T>> arg1)
method_66824(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
method_66824(CommandRegistryAccess arg0, RegistryKey<? extends Registry<T>> arg1)
public static <T> Collection<Holder$Reference<T>>
a(com.mojang.brigadier.context.CommandContext<ex> arg0, String arg1, alc<? extends kf<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)
method_66823(com.mojang.brigadier.context.CommandContext<ServerCommandSource> arg0, String arg1, RegistryKey<? extends Registry<T>> arg2)
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)
public Collection<String>
getExamples()
getExamples()