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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static GenerationTask.Listener
createPregenListener
(net.minecraft.commands.CommandSourceStack source) private static int
executeGeneration
(net.minecraft.commands.CommandSourceStack source, net.minecraft.core.BlockPos pos, int chunkRadius, boolean progressBar) private static boolean
getBool
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String name) private static int
getGenerationHelp
(net.minecraft.commands.CommandSourceStack source) private static int
getGenerationStatus
(net.minecraft.commands.CommandSourceStack source) private static int
getInt
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String name) (package private) static com.mojang.brigadier.builder.ArgumentBuilder
<net.minecraft.commands.CommandSourceStack, ?> register()
private static int
stopGeneration
(net.minecraft.commands.CommandSourceStack source)
-
Field Details
-
activeTask
-
generationBar
-
-
Constructor Details
-
GenerateCommand
GenerateCommand()
-
-
Method Details
-
register
static com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack,?> register() -
getInt
private static int getInt(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String name) -
getBool
private static boolean getBool(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String name) -
executeGeneration
private static int executeGeneration(net.minecraft.commands.CommandSourceStack source, net.minecraft.core.BlockPos pos, int chunkRadius, boolean progressBar) -
stopGeneration
private static int stopGeneration(net.minecraft.commands.CommandSourceStack source) -
getGenerationStatus
private static int getGenerationStatus(net.minecraft.commands.CommandSourceStack source) -
getGenerationHelp
private static int getGenerationHelp(net.minecraft.commands.CommandSourceStack source) -
createPregenListener
private static GenerationTask.Listener createPregenListener(net.minecraft.commands.CommandSourceStack source)
-