Class AttackAnimationRegistry
java.lang.Object
com.pixelmonmod.pixelmon.api.attackAnimations.AttackAnimationRegistry
Registry for all
AttackAnimations 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
FieldsModifier and TypeFieldDescriptionstatic HashMap<String, Class<? extends AttackAnimation>> Maps animation type key to animation instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetKeyForAnimation(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.
-