net.minecraft.commands.arguments

public class ResourceOrTagArgument<T>

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

fs
net.minecraft.commands.arguments.ResourceOrTagArgument
net.minecraft.class_7737
net.minecraft.unmapped.C_bwiwqfgl
net.minecraft.command.argument.RegistryEntryPredicateArgumentType
net.minecraft.command.argument.RegistryEntryOrTagArgument
net.minecraft.src.C_243640_
net.minecraft.commands.arguments.ResourceOrTagArgument

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceOrTagArgument<T>
a(el arg0, ale<? extends jv<T>> arg1)
resourceOrTag(CommandBuildContext arg0, ResourceKey<? extends Registry<T>> arg1)
method_45637(class_7157 arg0, class_5321<? extends class_2378<T>> arg1)
m_kfwauvon(C_bprdujxm arg0, C_xhhleach<? extends C_tqxyjqsk<T>> arg1)
registryEntryPredicate(CommandRegistryAccess registryRef, RegistryKey<? extends Registry<T>> registryAccess)
create(CommandBuildContext context, RegistryKey<? extends Registry<T>> registryKey)
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<ep> arg0, String arg1, ale<jv<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)
m_vnamvtuc(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1, C_xhhleach<C_tqxyjqsk<T>> arg2)
getRegistryEntryPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef)
getResult(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryKey)
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)
m_gomcthwd(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
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()