Package kr.toxicity.model.api.animation
Class AnimationEventHandler
java.lang.Object
kr.toxicity.model.api.animation.AnimationEventHandler
Animation event handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls animation remove event@NotNull AnimationEventHandleronAnimationRemove(@NotNull Runnable runnable) Adds animation remove event handlerstatic @NotNull AnimationEventHandlerstart()Starts event handler
-
Constructor Details
-
AnimationEventHandler
public AnimationEventHandler()
-
-
Method Details
-
start
Starts event handler- Returns:
- new event handler
-
animationRemove
@Internal public void animationRemove()Calls animation remove event -
onAnimationRemove
@NotNull public @NotNull AnimationEventHandler onAnimationRemove(@NotNull @NotNull Runnable runnable) Adds animation remove event handler- Parameters:
runnable- event handler- Returns:
- self
-