Class ArmatureDraw.Style
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.armature.ArmatureDraw.Style
- Enclosing class:
ArmatureDraw
How an armature is drawn this time: light, colour, outline and so on. Each method returns a changed copy.
-
Method Summary
Modifier and TypeMethodDescriptioncolor(int argb) Multiplies every face's colour (ARGB).crumbling(net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay crumbling) The block-breaking cracks, as a block entity renderer is given them.foil(boolean foil) The enchantment shimmer on top.ghost()See-through, as an invisible mob looks to a spectator.glow(float strength) How bright the_glowtextures are drawn: 1 as they are, 0 not at all (eyes that are shut, a lamp out).static ArmatureDraw.Stylelit(int light) Drawn with this light (packed block and sky light).outline(int color) The glowing effect's outline colour, 0 for none.Only the glowing outline, as an invisible glowing mob.overlay(int overlay) The overlay: the red hurt flash and the white flash, asLivingEntityRenderer.getOverlayCoordsgives.texture(@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.Its lit parts blended with what is behind them (a ghost, a hallucination, something fading), so the alpha of itscolorshows; glowing parts are drawn as before.
-
Method Details
-
lit
Drawn with this light (packed block and sky light). -
overlay
The overlay: the red hurt flash and the white flash, asLivingEntityRenderer.getOverlayCoordsgives. -
color
Multiplies every face's colour (ARGB). -
outline
The glowing effect's outline colour, 0 for none. -
ghost
See-through, as an invisible mob looks to a spectator. Use with a faintcolor. -
translucent
Its lit parts blended with what is behind them (a ghost, a hallucination, something fading), so the alpha of itscolorshows; glowing parts are drawn as before. -
outlineOnly
Only the glowing outline, as an invisible glowing mob. -
glow
How bright the_glowtextures are drawn: 1 as they are, 0 not at all (eyes that are shut, a lamp out). -
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.
-