Java Code Examples for net.minecraft.profiler.Profiler#Result
The following examples show how to use
net.minecraft.profiler.Profiler#Result .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MixinMinecraft.java From VanillaFix with MIT License | 5 votes |
/** * @reason Profiler isn't safe to use async, so get the results from server's last tick if server * profilder is being displayed. * <p> * Note: profilerName is always "root" client-side */ @SuppressWarnings("InvalidMemberReference") // https://github.com/minecraft-dev/MinecraftDev/issues/387 @Redirect(method = {"displayDebugInfo", "updateDebugProfilerName"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/profiler/Profiler;getProfilingData(Ljava/lang/String;)Ljava/util/List;")) private List<Profiler.Result> getProfilerData(Profiler profiler, String profilerName) { if (useIntegratedServerProfiler && integratedServer != null) { return new ArrayList<>(((IPatchedMinecraftServer) integratedServer).getLastProfilerData()); } else { return profiler.getProfilingData(profilerName); } }
Example 2
Source File: MixinMinecraftServer.java From VanillaFix with MIT License | 4 votes |
@Override public List<Profiler.Result> getLastProfilerData() { return lastProfilerData; }
Example 3
Source File: IPatchedMinecraftServer.java From VanillaFix with MIT License | votes |
List<Profiler.Result> getLastProfilerData();