net.minecraft.commands.arguments

public class ResourceOrTagKeyArgument<T>

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

er
net.minecraft.commands.arguments.ResourceOrTagKeyArgument
net.minecraft.class_7066
net.minecraft.command.argument.RegistryPredicateArgumentType
net.minecraft.src.C_243418_
net.minecraft.commands.arguments.ResourceOrTagKeyArgument

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_37223
EXAMPLES
f_244586_
final ResourceKey<? extends Registry<T>>
b
registryKey
field_37226
registryRef
f_243745_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceOrTagKeyArgument<T>
a(adc<? extends hq<T>> arg0)
resourceOrTagKey(ResourceKey<? extends Registry<T>> arg0)
method_41170(class_5321<? extends class_2378<T>> arg0)
registryPredicate(RegistryKey<? extends Registry<T>> registryRef)
m_247494_(C_5264_<? extends C_4705_<T>> p_249175_)
public static <T> ResourceOrTagKeyArgument$Result<T>
a(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1, adc<hq<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getResourceOrTagKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, ResourceKey<Registry<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
method_41166(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<class_2378<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException)
m_246379_(com.mojang.brigadier.context.CommandContext<C_2969_> p_252162_, String p_248628_, C_5264_<C_4705_<T>> p_249008_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_251387_)
public ResourceOrTagKeyArgument$Result<T>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_41164(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_251141_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()