Interface ArmatureAttachment

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ArmatureAttachment
Something drawn at a point of an armature, moving with it: a lantern on a hook, a flame on a torch joint, a block on a cart. The pose stack is at the point, in blocks, turned as the point is.
renderer.attach("lantern_hook", (frame, poseStack, collector, light) -> drawLantern(poseStack, collector, light));
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    submit(ArmatureFrame frame, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector collector, int light)
     
  • Method Details

    • submit

      void submit(ArmatureFrame frame, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector collector, int light)