Class ContextualBattleAnimationInstance
java.lang.Object
com.pixelmonmod.pixelmon.api.battles.animation.runtime.BattleAnimationInstance
com.pixelmonmod.pixelmon.api.battles.animation.runtime.ContextualBattleAnimationInstance
- All Implemented Interfaces:
ActiveBattleAnimation,ContextHolder
Runtime animation instance that exposes mutable stored context to its action.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.battles.animation.runtime.BattleAnimationInstance
action, attack, controller, target, ticks, user -
Constructor Summary
ConstructorsConstructorDescriptionContextualBattleAnimationInstance(BattleAnimationAction action, BattleAnimationContext context) -
Method Summary
Modifier and TypeMethodDescriptioncopy(BattleController newController) Creates a copy of this animation attached to another battle controller.Methods inherited from class com.pixelmonmod.pixelmon.api.battles.animation.runtime.BattleAnimationInstance
action, advanceAnimationTicks, attack, cleanUp, controller, isFinished, target, tick, ticks, userMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.battles.animation.runtime.ActiveBattleAnimation
acknowledgeClient, audience, blocksBattle, cleanUpChannel, isChannelBusy, isContextAliveMethods inherited from interface com.pixelmonmod.pixelmon.battles.controller.context.ContextHolder
get, getOrDefault, has, remove, set, update
-
Constructor Details
-
ContextualBattleAnimationInstance
public ContextualBattleAnimationInstance(BattleAnimationAction action, BattleAnimationContext context)
-
-
Method Details
-
getContext
-
copy
Description copied from interface:ActiveBattleAnimationCreates a copy of this animation attached to another battle controller.- Specified by:
copyin interfaceActiveBattleAnimation- Overrides:
copyin classBattleAnimationInstance- Parameters:
newController- the replacement battle controller- Returns:
- the copied animation
-