net.minecraft.command.argument

public class RegistryKeyArgumentType<T>

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

net.minecraft.commands.arguments.ResourceKeyArgument
net.minecraft.class_7079
net.minecraft.command.argument.RegistryKeyArgumentType

Field summary

Modifier and TypeField
private static final Collection<String>
EXAMPLES
field_37269
EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INVALID_FEATURE
field_37271
INVALID_FEATURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INVALID_STRUCTURE
field_39191
INVALID_STRUCTURE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INVALID_TEMPLATE_POOL
field_39192
INVALID_JIGSAW_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INVALID_RECIPE
field_54825
RECIPE_NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INVALID_ADVANCEMENT
field_54826
ADVANCEMENT_NOT_FOUND_EXCEPTION
private final RegistryKey<? extends Registry<T>>
registryKey
field_37272
registryRef

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> RegistryKeyArgumentType<T>
key(ResourceKey<? extends Registry<T>> key)
method_41224(class_5321<? extends class_2378<T>> arg0)
registryKey(RegistryKey<? extends Registry<T>> registryRef)
public static <T> RegistryKey<T>
getRegistryKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exceptionType)
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)
private static <T> Registry<T>
getRegistry(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, ResourceKey<? extends Registry<T>> registryKey)
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)
private static <T> RegistryEntry$Reference<T>
resolveKey(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, ResourceKey<Registry<T>> registryKey, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exception)
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)
public static RegistryEntry$Reference<Feature>
getConfiguredFeature(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_41225(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getConfiguredFeatureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<Structure>
getStructure(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_43779(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStructureEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RegistryEntry$Reference<StructurePool>
getStructureTemplatePool(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_43780(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getStructurePoolEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static RecipeEntry<?>
getRecipe(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_64866(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getRecipeEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static AdvancementEntry
getAdvancement(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_64867(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getAdvancementEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public RegistryKey<T>
parse(com.mojang.brigadier.StringReader reader)
method_41218(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> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
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()
public Object
parse(com.mojang.brigadier.StringReader reader)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$getRecipe$0(ResourceKey arg0)
method_64864(class_5321 arg0)
method_64864(RegistryKey arg0)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$resolveKey$0(com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg0, ResourceKey arg1)
method_43775(com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg0, class_5321 arg1)
method_43775(com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg0, RegistryKey arg1)
private static com.mojang.brigadier.exceptions.CommandSyntaxException
lambda$getRegistryKey$0(com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg0, ResourceKey arg1)
method_41222(com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg0, class_5321 arg1)
method_41222(com.mojang.brigadier.exceptions.DynamicCommandExceptionType arg0, RegistryKey arg1)
private static com.mojang.brigadier.Message
lambda$static$4(Object arg0)
method_64863(Object arg0)
method_64863(Object id)
private static com.mojang.brigadier.Message
lambda$static$3(Object arg0)
method_64865(Object arg0)
method_64865(Object id)
private static com.mojang.brigadier.Message
lambda$static$2(Object arg0)
method_43776(Object arg0)
method_43776(Object id)
private static com.mojang.brigadier.Message
lambda$static$1(Object arg0)
method_43778(Object arg0)
method_43778(Object id)
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0)
method_41226(Object arg0)
method_41226(Object id)