net.minecraft.commands.arguments

public class ResourceOrTagArgument<T>

implements com.mojang.brigadier.arguments.ArgumentType<ResourceOrTagArgument$Result<T>>

fz
net.minecraft.commands.arguments.ResourceOrTagArgument
net.minecraft.class_7737
net.minecraft.command.argument.RegistryEntryPredicateArgumentType
net.minecraft.commands.arguments.ResourceOrTagArgument

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_40417
EXAMPLES
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
b
ERROR_UNKNOWN_TAG
field_40418
NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
c
ERROR_INVALID_TAG_TYPE
field_40419
WRONG_TYPE_EXCEPTION
private final HolderLookup<T>
d
registryLookup
field_40420
registryWrapper
final ResourceKey<? extends Registry<T>>
e
registryKey
field_40421
registryRef

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceOrTagArgument<T>
a(es arg0, aly<? extends kd<T>> arg1)
resourceOrTag(CommandBuildContext arg0, ResourceKey<? extends Registry<T>> arg1)
method_45637(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess)
public static <T> ResourceOrTagArgument$Result<T>
a(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1, aly<kd<T>> arg2)
getResourceOrTag(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, ResourceKey<Registry<T>> arg2)
method_45636(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<class_2378<T>> arg2)
getRegistryEntryPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef)
public ResourceOrTagArgument$Result<T>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_45635(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
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()