Class GenerateCommand
java.lang.Object
net.neoforged.neoforge.server.command.GenerateCommand
Special thanks to Jasmine and Gegy for allowing us to use their pregenerator mod as a model to use in NeoForge!
Original code: https://github.com/jaskarth/fabric-chunkpregenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static GenerationTask.Listener
private static int
executeGeneration
(CommandSourceStack source, BlockPos pos, int chunkRadius, boolean progressBar) private static boolean
getBool
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String name) private static int
getGenerationHelp
(CommandSourceStack source) private static int
private static int
getInt
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String name) (package private) static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> register()
private static int
stopGeneration
(CommandSourceStack source)
-
Field Details
-
activeTask
-
generationBar
-
-
Constructor Details
-
GenerateCommand
GenerateCommand()
-
-
Method Details
-
register
-
getInt
private static int getInt(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String name) -
getBool
private static boolean getBool(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String name) -
executeGeneration
private static int executeGeneration(CommandSourceStack source, BlockPos pos, int chunkRadius, boolean progressBar) -
stopGeneration
-
getGenerationStatus
-
getGenerationHelp
-
createPregenListener
-