Class WindmillAnimationComponent
java.lang.Object
nl.pim16aap2.animatedarchitecture.structures.drawbridge.DrawbridgeAnimationComponent
nl.pim16aap2.animatedarchitecture.structures.windmill.WindmillAnimationComponent
- All Implemented Interfaces:
IAnimationComponent
-
Constructor Summary
ConstructorsConstructorDescriptionWindmillAnimationComponent(AnimationRequestData data, MovementDirection movementDirection, boolean isNorthSouthAligned) -
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.drawbridge.DrawbridgeAnimationComponent
executeAnimationStep, getGoalPos, getGoalPos, getGoalRotation, getRadius, 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
-
WindmillAnimationComponent
public WindmillAnimationComponent(AnimationRequestData data, MovementDirection movementDirection, boolean isNorthSouthAligned)
-
-
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 classDrawbridgeAnimationComponent- 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 classDrawbridgeAnimationComponent- Returns:
- The rotation function for the animated block data.
-