net.minecraft.commands.arguments

public class ResourceKeyArgument<T>

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

fi
net.minecraft.commands.arguments.ResourceKeyArgument
net.minecraft.class_7079
net.minecraft.unmapped.C_zgptntbw
net.minecraft.command.argument.RegistryKeyArgumentType
net.minecraft.command.argument.ResourceKeyArgument

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_37269
f_nufqqyoc
EXAMPLES
EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
b
ERROR_INVALID_FEATURE
field_37271
f_fmnxgqhj
INVALID_FEATURE_EXCEPTION
INVALID_FEATURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
c
ERROR_INVALID_STRUCTURE
field_39191
f_auxhsamu
INVALID_STRUCTURE_EXCEPTION
INVALID_STRUCTURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
d
ERROR_INVALID_TEMPLATE_POOL
field_39192
f_hqteeflf
INVALID_JIGSAW_EXCEPTION
INVALID_JIGSAW_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
e
ERROR_INVALID_RECIPE
field_54825
f_jsvwzvhn
RECIPE_NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
f
ERROR_INVALID_ADVANCEMENT
field_54826
f_gvgyodfl
ADVANCEMENT_NOT_FOUND_EXCEPTION
final ResourceKey<? extends Registry<T>>
g
registryKey
field_37272
f_umcxcanc
registryRef
registry

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> ResourceKeyArgument<T>
a(alf<? extends jr<T>> arg0)
key(ResourceKey<? extends Registry<T>> arg0)
method_41224(class_5321<? extends class_2378<T>> arg0)
m_cjqstqop(C_xhhleach<? extends C_tqxyjqsk<T>> arg0)
registryKey(RegistryKey<? extends Registry<T>> registryRef)
of(RegistryKey<? extends Registry<T>> registry)
public static <T> ResourceKey<T>
a(com.mojang.brigadier.context.CommandContext<ei> arg0, String arg1, alf<jr<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
getRegistryKey(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)
m_uejwwoio(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1, C_xhhleach<C_tqxyjqsk<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)
getKey(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String id, RegistryKey<Registry<T>> registry, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exception)
private static <T> Registry<T>
a(com.mojang.brigadier.context.CommandContext<ei> arg0, alf<? extends jr<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)
m_fuzyhifi(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, C_xhhleach<? extends C_tqxyjqsk<T>> arg1)
getRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> registryRef)
getRegistry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, RegistryKey<? extends Registry<T>> key)
private static <T> Holder$Reference<T>
b(com.mojang.brigadier.context.CommandContext<ei> arg0, String arg1, alf<jr<T>> arg2, com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg3)
resolveKey(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)
m_tvftiixn(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1, C_xhhleach<C_tqxyjqsk<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)
get(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String id, RegistryKey<Registry<T>> registry, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exception)
public static Holder$Reference<ConfiguredFeature<?, ?>>
a(com.mojang.brigadier.context.CommandContext<ei> 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)
m_xzpahjfz(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getConfiguredFeatureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String id)
public static Holder$Reference<Structure>
b(com.mojang.brigadier.context.CommandContext<ei> 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)
m_ezsbrgup(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getStructureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
getStructure(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Holder$Reference<StructureTemplatePool>
c(com.mojang.brigadier.context.CommandContext<ei> 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)
m_ulvfzmdi(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getStructurePoolEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
getStructurePool(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RecipeHolder<?>
d(com.mojang.brigadier.context.CommandContext<ei> arg0, String arg1)
getRecipe(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_64866(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
m_kwqvkotw(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getRecipeEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_kwqvkotw(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String id)
public static AdvancementHolder
e(com.mojang.brigadier.context.CommandContext<ei> arg0, String arg1)
getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_64867(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
m_uybmlodg(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, String arg1)
getAdvancementEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_uybmlodg(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String id)
public ResourceKey<T>
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_41218(com.mojang.brigadier.StringReader arg0)
m_gnikshsy(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
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()