Class SectionalGarageDoorAnimationComponent
java.lang.Object
nl.pim16aap2.animatedarchitecture.structures.garagedoor.CounterWeightGarageDoorAnimationComponent
nl.pim16aap2.animatedarchitecture.structures.garagedoor.SectionalGarageDoorAnimationComponent
- All Implemented Interfaces:
IAnimationComponent
public final class SectionalGarageDoorAnimationComponent
extends CounterWeightGarageDoorAnimationComponent
Represents a
Animator for GarageDoors.-
Field Summary
Fields inherited from class nl.pim16aap2.animatedarchitecture.structures.garagedoor.CounterWeightGarageDoorAnimationComponent
angle, animationDirectionFace, directionVec, mergedCuboid, mergedCuboidRadius, newCuboid, northSouth, oldCuboid, player, rotationCenter, rotator, snapshot, wasVertical -
Constructor Summary
ConstructorsConstructorDescriptionSectionalGarageDoorAnimationComponent(AnimationRequestData data, MovementDirection movementDirection) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAnimationStep(IAnimator animator, Iterable<IAnimatedBlock> animatedBlocks, int ticks) Runs a single step of the animation.Methods inherited from class nl.pim16aap2.animatedarchitecture.structures.garagedoor.CounterWeightGarageDoorAnimationComponent
getFinalPosition, getGoalPos, getRadiusMethods 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
getBlockDataRotator, getStartPosition, prepareAnimation
-
Constructor Details
-
SectionalGarageDoorAnimationComponent
public SectionalGarageDoorAnimationComponent(AnimationRequestData data, MovementDirection movementDirection)
-
-
Method Details
-
executeAnimationStep
public void executeAnimationStep(IAnimator animator, Iterable<IAnimatedBlock> animatedBlocks, int ticks) Description copied from interface:IAnimationComponentRuns a single step of the animation.- Specified by:
executeAnimationStepin interfaceIAnimationComponent- Overrides:
executeAnimationStepin classCounterWeightGarageDoorAnimationComponent- Parameters:
animator- The animator responsible for the animation.animatedBlocks- The animated blocks for which to execute the animation step.ticks- The number of ticks that have passed since the start of the animation.
-