Annotate all the things

This commit is contained in:
FalsePattern committed 2022-08-06 13:12:55 +02:00
1 parent 980e8a8776
commit da1ef6c8c7
63 files changed
+623 -369

No files matched your search

@@ -41,6 +41,7 @@ import static net.minecraft.client.Minecraft.getMinecraft;
public final class RenderUtil {
private final static Timer MINECRAFT_TIMER = getMinecraftTimer();
@StableAPI.Expose
@SneakyThrows
private static Timer getMinecraftTimer() {
val timerField = ReflectionHelper.findField(Minecraft.class, "timer", "field_71428_T");
@@ -98,6 +99,7 @@ public final class RenderUtil {
};
}
@StableAPI.Expose
public static float partialTick() {
return MINECRAFT_TIMER.renderPartialTicks;
}