类 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.-
字段概要
字段修饰符和类型字段说明private 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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()
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ROOT_REGISTRY_KEY
-
ALPHABETICAL_SORT_PARAM
- 另请参阅:
-
PRINT_NUMERIC_ID_PARAM
- 另请参阅:
-
UNKNOWN_REGISTRY
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_REGISTRY
-
-
构造器详细资料
-
DumpCommand
DumpCommand()
-
-
方法详细资料
-
register
-
dumpRegistry
private static int dumpRegistry(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, boolean alphabeticalSort, boolean printNumericIds) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSortedRegistryKeys
private static List<ResourceLocation> getSortedRegistryKeys(boolean alphabeticalSort, boolean printNumericIds, Registry<?> registry)
-