net.minecraft.commands.arguments

public class ResourceOrTagArgument<T>

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

eq
net.minecraft.commands.arguments.ResourceOrTagArgument
net.minecraft.class_7737
net.minecraft.command.argument.RegistryEntryPredicateArgumentType
net.minecraft.src.C_243640_
net.minecraft.commands.arguments.ResourceOrTagArgument

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceOrTagArgument<T>
a(dl arg0, adc<? extends hq<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)
m_247455_(C_213173_ p_251101_, C_5264_<? extends C_4705_<T>> p_248888_)
public static <T> ResourceOrTagArgument$Result<T>
a(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1, adc<hq<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)
m_245464_(com.mojang.brigadier.context.CommandContext<C_2969_> p_249001_, String p_251520_, C_5264_<C_4705_<T>> p_250370_)
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)
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)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_252354_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()