net.minecraft.commands.arguments

public class ResourceKeyArgument<T>

implements com.mojang.brigadier.arguments.ArgumentType<ResourceKey<T>>

ep
net.minecraft.commands.arguments.ResourceKeyArgument
net.minecraft.class_7079
net.minecraft.command.argument.RegistryKeyArgumentType
net.minecraft.src.C_211818_
net.minecraft.commands.arguments.ResourceKeyArgument

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_37269
EXAMPLES
f_212361_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_UNKNOWN_ATTRIBUTE
field_37270
UNKNOWN_ATTRIBUTE_EXCEPTION
f_212362_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
c
ERROR_INVALID_FEATURE
field_37271
INVALID_FEATURE_EXCEPTION
f_212363_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
d
ERROR_INVALID_STRUCTURE
field_39191
INVALID_STRUCTURE_EXCEPTION
f_233246_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
e
ERROR_INVALID_TEMPLATE_POOL
field_39192
INVALID_JIGSAW_EXCEPTION
f_233247_
final ResourceKey<? extends Registry<T>>
f
registryKey
field_37272
registryRef
f_212364_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceKeyArgument<T>
a(aba<? extends hm<T>> arg0)
key(ResourceKey<? extends Registry<T>> arg0)
method_41224(class_5321<? extends class_2378<T>> arg0)
registryKey(RegistryKey<? extends Registry<T>> registryRef)
m_212386_(C_5264_<? extends C_4705_<T>> p_212387_)
private static <T> ResourceKey<T>
a(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1, aba<hm<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getRegistryType(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, ResourceKey<Registry<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
method_41220(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<class_2378<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getKey(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException)
m_212373_(com.mojang.brigadier.context.CommandContext<C_2969_> p_212374_, String p_212375_, C_5264_<C_4705_<T>> p_212376_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_212377_)
private static <T> Registry<T>
a(com.mojang.brigadier.context.CommandContext<dr> arg0, aba<? extends hm<T>> arg1)
getRegistry(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, ResourceKey<? extends Registry<T>> arg1)
method_41221(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_5321<? extends class_2378<T>> arg1)
getRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef)
m_212378_(com.mojang.brigadier.context.CommandContext<C_2969_> p_212379_, C_5264_<? extends C_4705_<T>> p_212380_)
private static <T> Holder<T>
b(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1, aba<hm<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getRegistryKeyType(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1, ResourceKey<Registry<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
method_43777(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1, class_5321<class_2378<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getRegistryEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, RegistryKey<Registry<T>> registryRef, com.mojang.brigadier.exceptions.DynamicCommandExceptionType invalidException)
m_233255_(com.mojang.brigadier.context.CommandContext<C_2969_> p_233256_, String p_233257_, C_5264_<C_4705_<T>> p_233258_, com.mojang.brigadier.exceptions.DynamicCommandExceptionType p_233259_)
public static Attribute
a(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1)
getAttribute(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_41219(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getAttribute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_212370_(com.mojang.brigadier.context.CommandContext<C_2969_> p_212371_, String p_212372_)
public static Holder<ConfiguredFeature<?, ?>>
b(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1)
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_41225(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getConfiguredFeatureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_212388_(com.mojang.brigadier.context.CommandContext<C_2969_> p_212389_, String p_212390_)
public static Holder<Structure>
c(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1)
getStructure(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_43779(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStructureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_233265_(com.mojang.brigadier.context.CommandContext<C_2969_> p_233266_, String p_233267_)
public static Holder<StructureTemplatePool>
d(com.mojang.brigadier.context.CommandContext<dr> arg0, String arg1)
getStructureTemplatePool(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_43780(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStructurePoolEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_233268_(com.mojang.brigadier.context.CommandContext<C_2969_> p_233269_, String p_233270_)
public ResourceKey<T>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_41218(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_212400_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()