Interface ClientBackedBattleAnimationAction
- All Superinterfaces:
BattleAnimationAction
- All Known Implementing Classes:
BattleCameraAnimationAction,BattleExitAnimationAction,BattleParticleAnimationAction,BattleSoundAnimationAction,PokemonAnimationAction,PokemonTerastalEffectAnimationAction,PokemonUiFaintAnimationAction,PokemonUiHealthAnimationAction,PokemonUiSwitchInAnimationAction,PokemonUiSwitchOutAnimationAction,PokemonVisibilityAnimationAction,SceneBlockAnimationAction,UiVisibilityAnimationAction
Battle animation action whose visible effect is applied on each watching client.
-
Field Summary
Fields inherited from interface com.pixelmonmod.pixelmon.api.battles.animation.action.BattleAnimationAction
CODEC -
Method Summary
Modifier and TypeMethodDescriptiondefault ActiveBattleAnimationplay(BattleAnimationContext context) Creates the runtime animation instance for this action.play(ClientBattleAnimationContext context) Starts the visible client-side playback for this action.default booleanReturns whether the server should send a stop packet for this action when the runtime instance is cleaned up.default voidtick(BattleAnimationInstance animation) Advances this action by one server tick.Methods inherited from interface com.pixelmonmod.pixelmon.api.battles.animation.action.BattleAnimationAction
cleanUp, codec, isFinished, type
-
Method Details
-
play
Description copied from interface:BattleAnimationActionCreates the runtime animation instance for this action.- Specified by:
playin interfaceBattleAnimationAction- Parameters:
context- the battle animation context- Returns:
- the active runtime animation
-
tick
Description copied from interface:BattleAnimationActionAdvances this action by one server tick.- Specified by:
tickin interfaceBattleAnimationAction- Parameters:
animation- the active runtime animation
-
play
Starts the visible client-side playback for this action.- Parameters:
context- the client-side animation context- Returns:
- the client playback handle
-
sendsStopPacket
default boolean sendsStopPacket()Returns whether the server should send a stop packet for this action when the runtime instance is cleaned up.- Returns:
truewhen the client should receive a stop packet
-