Package nl.pim16aap2.animatedarchitecture.core.api.animatedblock
An IAnimatedBlock represents a part of a structure
while it is being animated. Before and after the animation, these will be regular blocks.
The AnimatedHighlightedBlock class represents a
specific type of animated block. These preview blocks are used to create an animation showing what the animation
would look like, without modifying the structure itself.
External plugins have two ways of interacting with the animations:
-
IAnimatedBlockHook:The animated block hook allows hooking into each animated block in an animation.
The hook interface allows overriding methods to react to events of the block, such as (re)spawning, moving, ticking, etc.
-
IAnimationHook:Animation hooks allow hooking into the animation itself.
Like with the animated block hook, the animation hook interface allows overriding methods to react to events. Events for the animation hook include the start and end of the animation, every animation step, and more.
-
ClassDescriptionAn
IAnimatedBlockthat represents a highlighted block.Contains the context in which an animation takes place.Represents a block that is being animated.Represents the internal data of an animated block.Represents a IFactory forIAnimatedBlockinstances.Represents a hook forIAnimatedBlocks.IAnimatedBlockHookFactory<T extends IAnimatedBlock>Represents a factory forIAnimatedBlockHooks.Represents a hook into anAnimation.IAnimationHookFactory<T extends IAnimatedBlock>Represents a factory forIAnimationHooks.