Class AttackAnimation
java.lang.Object
com.pixelmonmod.pixelmon.api.attackAnimations.AttackAnimation
- Direct Known Subclasses:
AttackAnimationLeapForward
,AttackAnimationRun
,AttackAnimationStationary
,AttackAnimationVerticalStomp
Interface for animations that occur when attacks are used. Implementations require registration during preInit
through
AttackAnimationRegistry
.- Since:
- April 23, 2018
-
Field Summary
Modifier and TypeFieldDescriptionnet.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
int
int
float[]
int
float[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(PixelmonWrapper user, PixelmonWrapper target, Attack attack) instantiate
(PixelmonWrapper user, PixelmonWrapper target, Attack attack) void
sendBattleEffect
(AttackAnimationData data, boolean groundedStartPosition, boolean groundedEndPosition) abstract boolean
tickAnimation
(int tick) Return true if the animation is complete and the damage can be applied.abstract boolean
-
Field Details
-
ticks
public transient int ticks -
dimension
public transient net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension -
startID
public transient int startID -
user
-
userPos
public transient float[] userPos -
endID
public transient int endID -
target
-
targetPos
public transient float[] targetPos -
attack
-
effectiveType
-
-
Constructor Details
-
AttackAnimation
public AttackAnimation()
-
-
Method Details
-
instantiate
-
initialize
-
tickAnimation
public abstract boolean tickAnimation(int tick) Return true if the animation is complete and the damage can be applied. -
usedOncePerTurn
public abstract boolean usedOncePerTurn() -
sendBattleEffect
public void sendBattleEffect(AttackAnimationData data, boolean groundedStartPosition, boolean groundedEndPosition)
-