Class RevolvingDoorAnimationComponent
java.lang.Object
nl.pim16aap2.animatedarchitecture.structures.bigdoor.BigDoorAnimationComponent
nl.pim16aap2.animatedarchitecture.structures.revolvingdoor.RevolvingDoorAnimationComponent
- All Implemented Interfaces:
IAnimationComponent
Represents a
Animator for RevolvingDoors.-
Constructor Summary
ConstructorsConstructorDescriptionRevolvingDoorAnimationComponent(AnimationRequestData data, MovementDirection movementDirection) -
Method Summary
Modifier and TypeMethodDescription@Nullable Consumer<IAnimatedBlockData> Provides the consumer that applies the rotation to theIAnimatedBlockData.getFinalPosition(int xAxis, int yAxis, int zAxis) Calculates the final position from the original coordinates of the block that will be animated.Methods inherited from class nl.pim16aap2.animatedarchitecture.structures.bigdoor.BigDoorAnimationComponent
executeAnimationStep, getRadius, getStartPositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.pim16aap2.animatedarchitecture.core.animation.IAnimationComponent
prepareAnimation
-
Constructor Details
-
RevolvingDoorAnimationComponent
public RevolvingDoorAnimationComponent(AnimationRequestData data, MovementDirection movementDirection)
-
-
Method Details
-
getFinalPosition
Description copied from interface:IAnimationComponentCalculates the final position from the original coordinates of the block that will be animated.- Specified by:
getFinalPositionin interfaceIAnimationComponent- Overrides:
getFinalPositionin classBigDoorAnimationComponent- Parameters:
xAxis- The x-coordinate of the original location of the block.yAxis- The y-coordinate of the original location of the block.zAxis- The z-coordinate of the original location of the block.- Returns:
- The final position of an
IAnimatedBlock.
-
getBlockDataRotator
Description copied from interface:IAnimationComponentProvides the consumer that applies the rotation to theIAnimatedBlockData.When set to null (the default value), it does not do anything.
- Specified by:
getBlockDataRotatorin interfaceIAnimationComponent- Overrides:
getBlockDataRotatorin classBigDoorAnimationComponent- Returns:
- The rotation function for the animated block data.
-