Class DumpCommand
java.lang.Object
net.neoforged.neoforge.server.command.DumpCommand
The
/neoforge dump registry
command for printing out the contents of a registry to a file in the game directory's dumps/registry folder.-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private static final org.slf4j.Logger
private static final String
private static final ResourceKey
<Registry<Registry<?>>> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
dumpRegistry
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, boolean alphabeticalSort, boolean printNumericIds) private static List
<ResourceLocation> getSortedRegistryKeys
(boolean alphabeticalSort, boolean printNumericIds, Registry<?> registry) static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> register()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ROOT_REGISTRY_KEY
-
ALPHABETICAL_SORT_PARAM
- See Also:
-
PRINT_NUMERIC_ID_PARAM
- See Also:
-
UNKNOWN_REGISTRY
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_REGISTRY
-
-
Constructor Details
-
DumpCommand
DumpCommand()
-
-
Method Details
-
register
-
dumpRegistry
private static int dumpRegistry(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, boolean alphabeticalSort, boolean printNumericIds) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSortedRegistryKeys
private static List<ResourceLocation> getSortedRegistryKeys(boolean alphabeticalSort, boolean printNumericIds, Registry<?> registry)
-