Class TPSCommand

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

class TPSCommand extends Object
  • Field Details

    • TIME_FORMATTER

      private static final DecimalFormat TIME_FORMATTER
    • UNLOADED

      private static final long[] UNLOADED
  • Constructor Details

    • TPSCommand

      TPSCommand()
  • Method Details

    • register

      static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> register()
    • sendTime

      private static int sendTime(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, @Nullable @Nullable ServerLevel dimension) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • createComponent

      private static Component createComponent(MinecraftServer server, @Nullable @Nullable ServerLevel dimension)
    • calculateTPSColor

      private static int calculateTPSColor(TickRateManager tickRateManager, double tps)