类 TPSCommand
java.lang.Object
net.neoforged.neoforge.server.command.TPSCommand
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
calculateTPSColor
(TickRateManager tickRateManager, double tps) private static Component
createComponent
(MinecraftServer server, @Nullable ServerLevel dimension) (专用程序包) static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> register()
private static int
sendTime
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, @Nullable ServerLevel dimension)
-
字段详细资料
-
TIME_FORMATTER
-
UNLOADED
private static final long[] UNLOADED
-
-
构造器详细资料
-
TPSCommand
TPSCommand()
-
-
方法详细资料
-
register
-
sendTime
private static int sendTime(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, @Nullable @Nullable ServerLevel dimension) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
createComponent
private static Component createComponent(MinecraftServer server, @Nullable @Nullable ServerLevel dimension) -
calculateTPSColor
-