Class ArmatureDraw.Style

java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.armature.ArmatureDraw.Style
Enclosing class:
ArmatureDraw

public static final class ArmatureDraw.Style extends Object
How an armature is drawn this time: light, colour, outline and so on. Each method returns a changed copy.
  • Method Details

    • lit

      public static ArmatureDraw.Style lit(int light)
      Drawn with this light (packed block and sky light).
    • overlay

      public ArmatureDraw.Style overlay(int overlay)
      The overlay: the red hurt flash and the white flash, as LivingEntityRenderer.getOverlayCoords gives.
    • color

      public ArmatureDraw.Style color(int argb)
      Multiplies every face's colour (ARGB).
    • outline

      public ArmatureDraw.Style outline(int color)
      The glowing effect's outline colour, 0 for none.
    • ghost

      public ArmatureDraw.Style ghost()
      See-through, as an invisible mob looks to a spectator. Use with a faint color.
    • translucent

      public ArmatureDraw.Style translucent()
      Its lit parts blended with what is behind them (a ghost, a hallucination, something fading), so the alpha of its color shows; glowing parts are drawn as before.
    • outlineOnly

      public ArmatureDraw.Style outlineOnly()
      Only the glowing outline, as an invisible glowing mob.
    • glow

      public ArmatureDraw.Style glow(float strength)
      How bright the _glow textures are drawn: 1 as they are, 0 not at all (eyes that are shut, a lamp out).
    • foil

      public ArmatureDraw.Style foil(boolean foil)
      The enchantment shimmer on top.
    • crumbling

      public ArmatureDraw.Style crumbling(@Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay crumbling)
      The block-breaking cracks, as a block entity renderer is given them.
    • texture

      public ArmatureDraw.Style texture(@Nullable @Nullable IntFunction<@Nullable net.minecraft.resources.Identifier> texture)
      Swaps textures: given a texture slot, the texture to use instead, or null to keep the armature's.