💃 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:
IAnimatedEntityfor entities with animation systemIAnimatedTilefor block entities (or tile entities) with animation system Implementing your own object type does mean that you're going to need to registerIObjectSourcefrom 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.