File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/main/java/com/falsepattern/lib/util Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 39
39
@ NoArgsConstructor (access = PRIVATE )
40
40
@ StableAPI (since = "0.8.0" )
41
41
public final class RenderUtil {
42
- private final static Timer MINECRAFT_TIMER = getMinecraftTimer ();
43
-
44
- @ StableAPI .Expose
45
- @ SneakyThrows
46
- private static Timer getMinecraftTimer () {
47
- val timerField = ReflectionHelper .findField (Minecraft .class , "timer" , "field_71428_T" );
48
- timerField .setAccessible (true );
49
- return (Timer ) timerField .get (getMinecraft ());
50
- }
42
+ private static final Timer MINECRAFT_TIMER = getMinecraftTimer ();
51
43
52
44
@ StableAPI .Expose (since = "0.10.0" )
53
45
public static IIcon getFullTextureIcon (String iconName , int width , int height ) {
@@ -103,4 +95,12 @@ public String getIconName() {
103
95
public static float partialTick () {
104
96
return MINECRAFT_TIMER .renderPartialTicks ;
105
97
}
98
+
99
+ @ StableAPI .Expose
100
+ @ SneakyThrows
101
+ private static Timer getMinecraftTimer () {
102
+ val timerField = ReflectionHelper .findField (Minecraft .class , "timer" , "field_71428_T" );
103
+ timerField .setAccessible (true );
104
+ return (Timer ) timerField .get (getMinecraft ());
105
+ }
106
106
}
You can’t perform that action at this time.
0 commit comments