💃 Animation Systems
What are they and how they play?
Essentials
Running our newly registered animations requires an object that may combine multiple animations, transition between them and keep them in sync between server and clients.
This is where AnimationSystem
comes into play.
🪨 IAnimatedObject
Your animated object must implement IAnimatedObject
.
HammerAnimations provides you with two presets to use:
IAnimatedEntity
for entities with animation systemIAnimatedTile
for block entities (or tile entities) with animation system Implementing your own object type does mean that you're going to need to registerIObjectSource
from HammerLib.
info
If you're using HammerMultipart, there is PartSourceType
provide IObjectSource<PartEntity>
using PartSourceType.of(PartEntity part)
method.
Any animation system has one or more animation layers inside it, used to play and update animations.