cawezs_mantle_to_stratus/models/animations/SingularityModelAnimation.java
2025-06-02 10:05:26 -04:00

39 lines
1.8 KiB
Java

// Save this class in your mod and generate all required imports
/**
* Made with Blockbench 4.12.4 Exported for Minecraft version 1.19 or later with
* Mojang mappings
*
* @author Author
*/
public class SingularityModelAnimation {
public static final AnimationDefinition SingularityAnimation = AnimationDefinition.Builder.withLength(2.0F)
.looping()
.addAnimation("bone",
new AnimationChannel(AnimationChannel.Targets.SCALE,
new Keyframe(0.0F, KeyframeAnimations.scaleVec(1.0F, 1.0F, 1.0F),
AnimationChannel.Interpolations.LINEAR),
new Keyframe(1.0F, KeyframeAnimations.scaleVec(1.05F, 1.05F, 1.05F),
AnimationChannel.Interpolations.LINEAR),
new Keyframe(2.0F, KeyframeAnimations.scaleVec(1.0F, 1.0F, 1.0F),
AnimationChannel.Interpolations.LINEAR)))
.addAnimation("bone2",
new AnimationChannel(AnimationChannel.Targets.ROTATION,
new Keyframe(0.0F, KeyframeAnimations.degreeVec(0.0F, 0.0F, 0.0F),
AnimationChannel.Interpolations.LINEAR),
new Keyframe(2.0F, KeyframeAnimations.degreeVec(0.0F, 360.0F, 0.0F),
AnimationChannel.Interpolations.LINEAR)))
.addAnimation("bone3",
new AnimationChannel(AnimationChannel.Targets.ROTATION,
new Keyframe(0.0F, KeyframeAnimations.degreeVec(0.0F, 0.0F, 0.0F),
AnimationChannel.Interpolations.LINEAR),
new Keyframe(2.0F, KeyframeAnimations.degreeVec(360.0F, 0.0F, 0.0F),
AnimationChannel.Interpolations.LINEAR)))
.addAnimation("bone4",
new AnimationChannel(AnimationChannel.Targets.ROTATION,
new Keyframe(0.0F, KeyframeAnimations.degreeVec(0.0F, 0.0F, 0.0F),
AnimationChannel.Interpolations.LINEAR),
new Keyframe(2.0F, KeyframeAnimations.degreeVec(0.0F, 0.0F, 360.0F),
AnimationChannel.Interpolations.LINEAR)))
.build();
}