类 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
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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) (专用程序包) static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> register()
private static int
stopGeneration
(CommandSourceStack source)
-
字段详细资料
-
activeTask
-
generationBar
-
-
构造器详细资料
-
GenerateCommand
GenerateCommand()
-
-
方法详细资料
-
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
-