Class AnimatedBlockContainerFactory
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.animation.AnimatedBlockContainerFactory
A factory for creating
IAnimatedBlockContainers.
This class is responsible for creating new IAnimatedBlockContainers based on the given
AnimationType.
-
Method Summary
Modifier and TypeMethodDescriptionnewContainer(AnimationType animationType, @Nullable IPlayer player) Creates a newIAnimatedBlockContainerbased on the givenAnimationType.
-
Method Details
-
newContainer
Creates a newIAnimatedBlockContainerbased on the givenAnimationType.- Parameters:
animationType- The type of animation to create the container for.player- The player that the container is created for. Can be null if the container is not player-specific.- Returns:
- A new
IAnimatedBlockContainerbased on the givenAnimationType. - Throws:
IllegalArgumentException- If the player is null and the animation type requires a player. SeeAnimationType.requiresPlayer().
-