Class ArmatureItemRenderer

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.render.ArmatureItemRenderer
All Implemented Interfaces:
net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame>

public final class ArmatureItemRenderer extends Object implements net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame>
The coolcatlib:armature special item model: an item drawn with an armature, each stack animated on its own. It sits in the item's model space as a block model does, standing on the bottom middle of the 0-16 cube.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     

    Nested classes/interfaces inherited from interface net.minecraft.client.renderer.special.SpecialModelRenderer

    net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.Identifier
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    animates(net.minecraft.client.renderer.special.SpecialModelRenderer<?> renderer)
    True for this renderer, so the item is redrawn every frame in slots (see SpecialModelWrapperMixin).
    @Nullable ArmatureFrame
    extractArgument(net.minecraft.world.item.ItemStack stack)
     
    void
    getExtents(Consumer<org.joml.Vector3fc> output)
     
    void
    submit(@Nullable ArmatureFrame frame, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector collector, int lightCoords, int overlayCoords, boolean hasFoil, int outlineColor)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE

      public static final net.minecraft.resources.Identifier TYPE
  • Method Details

    • animates

      public static boolean animates(net.minecraft.client.renderer.special.SpecialModelRenderer<?> renderer)
      True for this renderer, so the item is redrawn every frame in slots (see SpecialModelWrapperMixin).
    • extractArgument

      @Nullable public @Nullable ArmatureFrame extractArgument(net.minecraft.world.item.ItemStack stack)
      Specified by:
      extractArgument in interface net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame>
    • submit

      public void submit(@Nullable @Nullable ArmatureFrame frame, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector collector, int lightCoords, int overlayCoords, boolean hasFoil, int outlineColor)
      Specified by:
      submit in interface net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame>
    • getExtents

      public void getExtents(Consumer<org.joml.Vector3fc> output)
      Specified by:
      getExtents in interface net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame>