Class EntityRenderer<T extends Entity>

java.lang.Object
net.minecraft.client.render.entity.EntityRenderer<T>
Direct Known Subclasses:
AreaEffectCloudEntityRenderer, BoatEntityRenderer, DragonFireballEntityRenderer, EndCrystalEntityRenderer, EnderDragonEntityRenderer, EvokerFangsEntityRenderer, ExperienceOrbEntityRenderer, FallingBlockEntityRenderer, FireworkEntityRenderer, FishingBobberEntityRenderer, FlyingItemEntityRenderer, ItemEntityRenderer, ItemFrameEntityRenderer, LeashKnotEntityRenderer, LightningEntityRenderer, LivingEntityRenderer, LlamaSpitEntityRenderer, MinecartEntityRenderer, PaintingEntityRenderer, ProjectileEntityRenderer, ShulkerBulletEntityRenderer, TntEntityRenderer, TridentEntityRenderer, WitherSkullEntityRenderer

@Environment(CLIENT)
public abstract class EntityRenderer<T extends Entity>
extends Object
  • Field Details

    • dispatcher

      protected final EntityRenderDispatcher dispatcher
    • shadowRadius

      protected float shadowRadius
    • shadowOpacity

      protected float shadowOpacity
  • Constructor Details

  • Method Details

    • getLight

      public final int getLight​(T entity, float tickDelta)
    • method_27950

      protected int method_27950​(T t, BlockPos blockPos)
    • getBlockLight

      protected int getBlockLight​(T t, BlockPos blockPos)
    • shouldRender

      public boolean shouldRender​(T entity, Frustum frustum, double x, double y, double z)
    • getPositionOffset

      public Vec3d getPositionOffset​(T entity, float tickDelta)
    • render

      public void render​(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
    • hasLabel

      protected boolean hasLabel​(T entity)
      Determines whether the passed entity should render with a nameplate above its head.

      Checks for a custom nametag on living entities, and for teams/team visibilities for players.

    • getTexture

      public abstract Identifier getTexture​(T entity)
    • getFontRenderer

      public TextRenderer getFontRenderer()
    • renderLabelIfPresent

      protected void renderLabelIfPresent​(T entity, Text text, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
    • getRenderManager

      public EntityRenderDispatcher getRenderManager()