Class VanillaState

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.vanilla.VanillaState

public final class VanillaState extends Object
What a vanilla mob is drawn with this frame, beyond vanilla: its animator (for clips and modifiers), its attachments' frames by the index of the attachment in its VanillaModel (null where one isn't worn), and, found once when first needed, the parts other animation libraries are moving.
  • Constructor Details

    • VanillaState

      public VanillaState(VanillaModel model, Animator animator, @Nullable @Nullable ArmatureFrame[] frames, @Nullable @Nullable net.minecraft.resources.Identifier[] textures, boolean mirrored)
  • Method Details

    • mirrored

      public boolean mirrored()
      Whether clips play mirrored (a left-handed entity, with mirrorLeftHanded).
    • model

      public VanillaModel model()
    • animator

      public Animator animator()
    • frames

      @Nullable public @Nullable ArmatureFrame[] frames()
    • textures

      @Nullable public @Nullable net.minecraft.resources.Identifier[] textures()
    • frame

      @Nullable public @Nullable ArmatureFrame frame(int index)
    • attachment

      public VanillaAttachment attachment(int index)