Class DumpCommand

java.lang.Object
net.neoforged.neoforge.server.command.DumpCommand

class DumpCommand extends Object
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 Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • ROOT_REGISTRY_KEY

      private static final ResourceKey<Registry<Registry<?>>> ROOT_REGISTRY_KEY
    • ALPHABETICAL_SORT_PARAM

      private static final String ALPHABETICAL_SORT_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<CommandSourceStack,?> 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)