Class TPSCommand
java.lang.Object
net.neoforged.neoforge.server.command.TPSCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateTPSColor(TickRateManager tickRateManager, double tps) private static ComponentcreateComponent(MinecraftServer server, @Nullable ServerLevel dimension) (package private) static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> register()private static intsendTime(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, @Nullable ServerLevel dimension)
-
Field Details
-
TIME_FORMATTER
-
UNLOADED
private static final long[] UNLOADED
-
-
Constructor Details
-
TPSCommand
TPSCommand()
-
-
Method Details
-
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
-