Class AttackAnimationRegistry
java.lang.Object
com.pixelmonmod.pixelmon.api.attackAnimations.AttackAnimationRegistry
Registry for all
AttackAnimation
s for Attacks
. During preInit,
animation name and instance should be added to animations
.
If they are properly added during preInit, they can be added to the move JSONs and
smoothly deserialize.- Since:
- April 23, 2018
-
Field Summary
Modifier and TypeFieldDescriptionstatic HashMap<String,
Class<? extends AttackAnimation>> Maps animation type key to animation instance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getKeyForAnimation
(AttackAnimation animation) Gets the key for the given animation.
-
Field Details
-
animations
Maps animation type key to animation instance.
-
-
Constructor Details
-
AttackAnimationRegistry
public AttackAnimationRegistry()
-
-
Method Details
-
getKeyForAnimation
Gets the key for the given animation.
-