Initial commit for first person animations, still need to debug and fix.

This commit is contained in:
Luis C.M committed 2024-01-24 00:34:06 -06:00
1 parent 97d3df9f38
commit 0ee066b974
5 files changed
+359 -1

No files matched your search

@@ -25,6 +25,9 @@ public class ConfigMixin
public static Property AnimationMixinProperty;
public static boolean AnimationMixin = true;
public static Property FirstPersonAnimationMixinProperty;
public static boolean FirstPersonAnimationMixin = true;
public static void init(File configFile)
{
config = new Configuration(configFile);
@@ -39,6 +42,12 @@ public class ConfigMixin
AnimationMixinProperty = config.get(CLIENT, "Animation Mixin", true, "Enables mixins for the ModelRenderer and RenderPlayer classes, allowing for additional animation functionality in the API. If crashes or visual errors occur, please disable.");
AnimationMixin = AnimationMixinProperty.getBoolean(true);
if (AnimationMixin) {
FirstPersonAnimationMixinProperty = config.get(CLIENT, "First Person Animation Mixin", true, "Enables mixins for the ItemRenderer class, allowing for animations to be visible in first person. Can only be enabled if the animation mixin is enabled. If crashes or visual errors occur, please disable.");
FirstPersonAnimationMixin = FirstPersonAnimationMixinProperty.getBoolean(true);
} else {
FirstPersonAnimationMixin = false;
}
}
catch (Exception e)
{