Class ArmatureEntityRenderer<T extends net.minecraft.world.entity.Entity>

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T, ArmatureEntityRenderer.State>
net.ixdarklord.coolcatcanvas.api.client.armature.render.ArmatureEntityRenderer<T>

public class ArmatureEntityRenderer<T extends net.minecraft.world.entity.Entity> extends net.minecraft.client.renderer.entity.EntityRenderer<T, ArmatureEntityRenderer.State>
Draws any entity with an armature: projectiles, vehicles, effects, display props. The model turns with the entity's yaw and, if asked, its pitch (for things that fly the way they face). For living entities use ArmatureMobRenderer.
EntityRendererRegistry.register(MyEntities.BOLT, ArmatureEntityRenderer.of(Armature.of("mymod", "bolt"), renderer -> renderer
        .pitch(true)
        .animate(animator -> animator.play(Motion.loop("spin")))));
  • Constructor Details

    • ArmatureEntityRenderer

      public ArmatureEntityRenderer(net.minecraft.client.renderer.entity.EntityRendererProvider.Context context, Armature armature)
  • Method Details