Class ArmatureInstances

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.ArmatureInstances

public final class ArmatureInstances extends Object
The animator of every entity, block entity and item stack drawn with an armature, held only as long as the thing itself (weak keys, compared by identity). Commands for one not drawn yet (a server's "play" for an entity just coming into view) wait a moment for it.
  • Method Details

    • get

      public static Animator get(Object owner, Armature armature, Consumer<Animator> setup)
      The owner's animator, made and set up the first time (and again if it is now drawn with another armature).
    • find

      @Nullable public static @Nullable Animator find(Object owner)
    • command

      public static void command(Object owner, Consumer<Animator> command)
      Runs a command on the owner's animator now, or as soon as it has one if that is within a second.
    • clear

      public static void clear()