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
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final org.slf4j.Logger
private static final String
private static final net.minecraft.resources.ResourceKey
<net.minecraft.core.Registry<net.minecraft.core.Registry<?>>> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
dumpRegistry
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, boolean alphabeticalSort, boolean printNumericIds) private static List
<net.minecraft.resources.ResourceLocation> getSortedRegistryKeys
(boolean alphabeticalSort, boolean printNumericIds, net.minecraft.core.Registry<?> registry) static com.mojang.brigadier.builder.ArgumentBuilder
<net.minecraft.commands.CommandSourceStack, ?> register()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ROOT_REGISTRY_KEY
private static final net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.core.Registry<?>>> 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
public static com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack,?> register() -
dumpRegistry
private static int dumpRegistry(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, boolean alphabeticalSort, boolean printNumericIds) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSortedRegistryKeys
private static List<net.minecraft.resources.ResourceLocation> getSortedRegistryKeys(boolean alphabeticalSort, boolean printNumericIds, net.minecraft.core.Registry<?> registry)
-