-
Nested Class Summary
Nested Classes
-
Method Summary
void
Ignore all lerp out animations and stop all animations immediately.
This is used to cancel all ongoing animations before playing the death animation.
void
Ignore lerp out animation and stop the animation immediately.
To stop the animation gracefully, use
stopAnimation(String)
.
Get the
SimpleProperty
object that contains the animation information of the provided ID.
boolean
boolean
Check if the handler is already playing the animation.
default void
boolean
Attempt to play an animation of the specified ID.
Attempt to play an animation of the specified ID.
void
default void
void
void
void
Update method for global keyframes that is called every tick.
void
Methods inherited from interface com.ticxo.modelengine.api.utils.data.io.DataIO
save
-
Method Details
-
-
-
-
hasFinishedAllAnimations
boolean hasFinishedAllAnimations()
-
-
-
tickGlobal
void tickGlobal()
Update method for global keyframes that is called every tick.
-
playAnimation
@Nullable
@Nullable IAnimationProperty playAnimation(String animation,
double lerpIn,
double lerpOut,
double speed,
boolean force)
Attempt to play an animation of the specified ID.
- Parameters:
animation
- the animation ID
lerpIn
- time taken to interpolate into the animation (in seconds)
lerpOut
- time taken to interpolate out of the animation (in seconds)
speed
- raw speed multiplier (1 for default speed)
force
- if false, the animation would only play if the model is not currently playing
the animation, or the animation is in LERPOUT
phase
- Returns:
- Created animation property if the animation is being played successfully
-
playAnimation
Attempt to play an animation of the specified ID.
- Parameters:
property
- the IAnimationProperty
of the animation
force
- if false, the animation would only play if the model is not currently playing
the animation, or the animation is in LERPOUT
phase
- Returns:
- true if the animation is being played successfully
-
isPlayingAnimation
boolean isPlayingAnimation(String animation)
Check if the handler is already playing the animation.
-
stopAnimation
void stopAnimation(String animation)
-
forceStopAnimation
void forceStopAnimation(String animation)
Ignore lerp out animation and stop the animation immediately.
To stop the animation gracefully, use
stopAnimation(String)
.
-
forceStopAllAnimations
void forceStopAllAnimations()
Ignore all lerp out animations and stop all animations immediately.
This is used to cancel all ongoing animations before playing the death animation.
-
getAnimation
Get the
SimpleProperty
object that contains the animation information of the provided ID.
- Parameters:
animation
- the ID of the animation
- Returns:
- the
SimpleProperty
object of the animation, or null if there is no animation playing under that ID.
-
-
-
-