Class TPSCommand

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

class TPSCommand extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final DecimalFormat
     
    private static final long[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static int
    calculateTPSColor(net.minecraft.world.TickRateManager tickRateManager, double tps)
     
    private static net.minecraft.network.chat.Component
    createComponent(net.minecraft.server.MinecraftServer server, @Nullable net.minecraft.server.level.ServerLevel dimension)
     
    (package private) static com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack,?>
     
    private static int
    sendTime(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, @Nullable net.minecraft.server.level.ServerLevel dimension)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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<net.minecraft.commands.CommandSourceStack,?> register()
    • sendTime

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

      private static net.minecraft.network.chat.Component createComponent(net.minecraft.server.MinecraftServer server, @Nullable @Nullable net.minecraft.server.level.ServerLevel dimension)
    • calculateTPSColor

      private static int calculateTPSColor(net.minecraft.world.TickRateManager tickRateManager, double tps)