Enum Class ArmatureMaterial

java.lang.Object
java.lang.Enum<ArmatureMaterial>
net.ixdarklord.coolcatcanvas.api.client.armature.ArmatureMaterial
All Implemented Interfaces:
Serializable, Comparable<ArmatureMaterial>, Constable

public enum ArmatureMaterial extends Enum<ArmatureMaterial>
How a part of an armature is drawn. Each joint has one (set in its .armature.json; children take their parent's), so a single model can mix a solid body, see-through wings and a glowing halo.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Lit, with fully clear pixels cut out, both sides drawn: right for most models, and the default.
    As CUTOUT, but faces seen from behind are skipped.
    Blended and unaffected by light: glowing translucent parts.
    Added onto what is behind it, at full brightness: eyes and energy, as an enderman's eyes.
    Lit and fully opaque.
    Lit, with partly clear pixels blended: glass, ghosts, water.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable ArmatureMaterial
    byName(String name)
    By name, as in .armature.json files ("translucent"); null if unknown.
    boolean
    lit()
    Whether it lets light from the world change it; lights coming in have no say on the ones that don't.
    net.minecraft.client.renderer.rendertype.RenderType
    renderType(net.minecraft.resources.Identifier texture)
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CUTOUT

      public static final ArmatureMaterial CUTOUT
      Lit, with fully clear pixels cut out, both sides drawn: right for most models, and the default.
    • CUTOUT_CULL

      public static final ArmatureMaterial CUTOUT_CULL
      As CUTOUT, but faces seen from behind are skipped.
    • SOLID

      public static final ArmatureMaterial SOLID
      Lit and fully opaque.
    • TRANSLUCENT

      public static final ArmatureMaterial TRANSLUCENT
      Lit, with partly clear pixels blended: glass, ghosts, water.
    • EMISSIVE

      public static final ArmatureMaterial EMISSIVE
      Blended and unaffected by light: glowing translucent parts.
    • GLOW

      public static final ArmatureMaterial GLOW
      Added onto what is behind it, at full brightness: eyes and energy, as an enderman's eyes.
  • Method Details

    • values

      public static ArmatureMaterial[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArmatureMaterial valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • renderType

      public net.minecraft.client.renderer.rendertype.RenderType renderType(net.minecraft.resources.Identifier texture)
    • lit

      public boolean lit()
      Whether it lets light from the world change it; lights coming in have no say on the ones that don't.
    • byName

      @Nullable public static @Nullable ArmatureMaterial byName(String name)
      By name, as in .armature.json files ("translucent"); null if unknown.