Enum Class ArmatureMaterial
- All Implemented Interfaces:
Serializable, Comparable<ArmatureMaterial>, Constable
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 ConstantsEnum ConstantDescriptionLit, with fully clear pixels cut out, both sides drawn: right for most models, and the default.AsCUTOUT, 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 TypeMethodDescriptionstatic @Nullable ArmatureMaterialBy name, as in.armature.jsonfiles ("translucent"); null if unknown.booleanlit()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.RenderTyperenderType(net.minecraft.resources.Identifier texture) static ArmatureMaterialReturns the enum constant of this class with the specified name.static ArmatureMaterial[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CUTOUT
Lit, with fully clear pixels cut out, both sides drawn: right for most models, and the default. -
CUTOUT_CULL
AsCUTOUT, but faces seen from behind are skipped. -
SOLID
Lit and fully opaque. -
TRANSLUCENT
Lit, with partly clear pixels blended: glass, ghosts, water. -
EMISSIVE
Blended and unaffected by light: glowing translucent parts. -
GLOW
Added onto what is behind it, at full brightness: eyes and energy, as an enderman's eyes.
-
-
Method Details
-
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
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 nameNullPointerException- 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
By name, as in.armature.jsonfiles ("translucent"); null if unknown.
-