Class GenerateCommand

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

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

  • 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)