Package com.goodbird.npcgecko.api
Interface IGeckoAnimation
-
public interface IGeckoAnimationRead-only interface for querying animation metadata from a loaded animation file. Provides access to animation properties as defined in Blockbench.Obtain an instance via
AbstractGeckoAPI.getAnimation(java.lang.String, java.lang.String).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getAnimatedBoneNames()Get the names of all bones that have keyframes in this animation.intgetCustomInstructionKeyframeCount()Get the number of custom instruction keyframes in this animation.doublegetLength()Get the total duration of this animation in seconds.StringgetName()Get the animation name as defined in the animation file.intgetParticleKeyframeCount()Get the number of particle effect keyframes in this animation.intgetSoundKeyframeCount()Get the number of sound effect keyframes in this animation.booleanisLooping()Check whether this animation loops by default as defined in the animation file.
-
-
-
Method Detail
-
getName
String getName()
Get the animation name as defined in the animation file.- Returns:
- the animation name
-
getLength
double getLength()
Get the total duration of this animation in seconds.- Returns:
- the animation length in seconds
-
isLooping
boolean isLooping()
Check whether this animation loops by default as defined in the animation file.- Returns:
- true if the animation is set to loop
-
getAnimatedBoneNames
String[] getAnimatedBoneNames()
Get the names of all bones that have keyframes in this animation.- Returns:
- array of bone names that are animated
-
getSoundKeyframeCount
int getSoundKeyframeCount()
Get the number of sound effect keyframes in this animation.- Returns:
- the sound keyframe count
-
getParticleKeyframeCount
int getParticleKeyframeCount()
Get the number of particle effect keyframes in this animation.- Returns:
- the particle keyframe count
-
getCustomInstructionKeyframeCount
int getCustomInstructionKeyframeCount()
Get the number of custom instruction keyframes in this animation.- Returns:
- the custom instruction keyframe count
-
-