Class EntityRenderer<T extends Entity>

java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
Direct Known Subclasses:
ArrowRenderer, BoatRenderer, DisplayRenderer, DragonFireballRenderer, EndCrystalRenderer, EnderDragonRenderer, EvokerFangsRenderer, ExperienceOrbRenderer, FallingBlockRenderer, FireworkEntityRenderer, FishingHookRenderer, ItemEntityRenderer, ItemFrameRenderer, LeashKnotRenderer, LightningBoltRenderer, LivingEntityRenderer, LlamaSpitRenderer, MinecartRenderer, NoopRenderer, OminousItemSpawnerRenderer, PaintingRenderer, ShulkerBulletRenderer, ThrownItemRenderer, ThrownTridentRenderer, TntRenderer, WindChargeRenderer, WitherSkullRenderer

public abstract class EntityRenderer<T extends Entity> extends Object
  • Field Details

    • NAMETAG_SCALE

      protected static final float NAMETAG_SCALE
      See Also:
    • LEASH_RENDER_STEPS

      public static final int LEASH_RENDER_STEPS
      See Also:
    • entityRenderDispatcher

      protected final EntityRenderDispatcher entityRenderDispatcher
    • font

      private final Font font
    • shadowRadius

      protected float shadowRadius
    • shadowStrength

      protected float shadowStrength
  • Constructor Details

  • Method Details

    • getPackedLightCoords

      public final int getPackedLightCoords(T p_114506_, float p_114507_)
    • getSkyLightLevel

      protected int getSkyLightLevel(T p_114509_, BlockPos p_114510_)
    • getBlockLightLevel

      protected int getBlockLightLevel(T p_114496_, BlockPos p_114497_)
    • shouldRender

      public boolean shouldRender(T p_114491_, Frustum p_114492_, double p_114493_, double p_114494_, double p_114495_)
    • getRenderOffset

      public Vec3 getRenderOffset(T p_114483_, float p_114484_)
    • render

      public void render(T p_114485_, float p_114486_, float p_114487_, PoseStack p_114488_, MultiBufferSource p_114489_, int p_114490_)
    • renderLeash

      private <E extends Entity> void renderLeash(T p_343368_, float p_344915_, PoseStack p_344390_, MultiBufferSource p_342590_, E p_344166_)
    • addVertexPair

      private static void addVertexPair(VertexConsumer p_344804_, org.joml.Matrix4f p_343855_, float p_342047_, float p_343146_, float p_342344_, int p_342780_, int p_343511_, int p_342326_, int p_343961_, float p_342941_, float p_343681_, float p_343907_, float p_343356_, int p_342821_, boolean p_343253_)
    • shouldShowName

      protected boolean shouldShowName(T p_114504_)
    • getTextureLocation

      public abstract ResourceLocation getTextureLocation(T p_114482_)
    • getFont

      public Font getFont()
    • renderNameTag

      protected void renderNameTag(T p_114498_, Component p_114499_, PoseStack p_114500_, MultiBufferSource p_114501_, int p_114502_, float p_334448_)
    • getShadowRadius

      protected float getShadowRadius(T p_335587_)