java.lang.Object
net.neoforged.neoforge.server.command.generation.GenerationBar
All Implemented Interfaces:
AutoCloseable

public class GenerationBar extends Object implements AutoCloseable
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

    • PERCENT_FORMAT

      private static final DecimalFormat PERCENT_FORMAT
    • bar

      private final net.minecraft.server.level.ServerBossEvent bar
  • Constructor Details

    • GenerationBar

      public GenerationBar()
  • Method Details

    • update

      public void update(int ok, int error, int skipped, int total)
    • addPlayer

      public void addPlayer(net.minecraft.server.level.ServerPlayer player)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable