Class EntityRenderer<T extends Entity,S extends EntityRenderState>

java.lang.Object
net.minecraft.client.render.entity.EntityRenderer<T,S>
Direct Known Subclasses:
AbstractBoatEntityRenderer, AbstractMinecartEntityRenderer, DisplayEntityRenderer, DragonFireballEntityRenderer, EmptyEntityRenderer, EndCrystalEntityRenderer, EnderDragonEntityRenderer, EvokerFangsEntityRenderer, ExperienceOrbEntityRenderer, FallingBlockEntityRenderer, FireworkRocketEntityRenderer, FishingBobberEntityRenderer, FlyingItemEntityRenderer, ItemEntityRenderer, ItemFrameEntityRenderer, LeashKnotEntityRenderer, LightningEntityRenderer, LivingEntityRenderer, LlamaSpitEntityRenderer, OminousItemSpawnerEntityRenderer, PaintingEntityRenderer, ProjectileEntityRenderer, ShulkerBulletEntityRenderer, TntEntityRenderer, TridentEntityRenderer, WindChargeEntityRenderer, WitherSkullEntityRenderer

@Environment(CLIENT) public abstract class EntityRenderer<T extends Entity,S extends EntityRenderState> extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/entity/EntityRenderer
intermediary net/minecraft/class_897
official gro
  • Field Details

    • field_32921

      protected static final float field_32921
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32921 Lnet/minecraft/client/render/entity/EntityRenderer;field_32921:F
      intermediary field_32921 Lnet/minecraft/class_897;field_32921:F
      official c Lgro;c:F
    • field_52257

      public static final int field_52257
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52257 Lnet/minecraft/client/render/entity/EntityRenderer;field_52257:I
      intermediary field_52257 Lnet/minecraft/class_897;field_52257:I
      official d Lgro;d:I
    • dispatcher

      protected final EntityRenderDispatcher dispatcher
      Mappings:
      Namespace Name Mixin selector
      named dispatcher Lnet/minecraft/client/render/entity/EntityRenderer;dispatcher:Lnet/minecraft/client/render/entity/EntityRenderDispatcher;
      intermediary field_4676 Lnet/minecraft/class_897;field_4676:Lnet/minecraft/class_898;
      official e Lgro;e:Lgrn;
    • textRenderer

      private final TextRenderer textRenderer
      Mappings:
      Namespace Name Mixin selector
      named textRenderer Lnet/minecraft/client/render/entity/EntityRenderer;textRenderer:Lnet/minecraft/client/font/TextRenderer;
      intermediary field_27761 Lnet/minecraft/class_897;field_27761:Lnet/minecraft/class_327;
      official a Lgro;a:Lfnp;
    • shadowRadius

      protected float shadowRadius
      Mappings:
      Namespace Name Mixin selector
      named shadowRadius Lnet/minecraft/client/render/entity/EntityRenderer;shadowRadius:F
      intermediary field_4673 Lnet/minecraft/class_897;field_4673:F
      official f Lgro;f:F
    • shadowOpacity

      protected float shadowOpacity
      Mappings:
      Namespace Name Mixin selector
      named shadowOpacity Lnet/minecraft/client/render/entity/EntityRenderer;shadowOpacity:F
      intermediary field_4672 Lnet/minecraft/class_897;field_4672:F
      official g Lgro;g:F
    • state

      private final S extends EntityRenderState state
      Mappings:
      Namespace Name Mixin selector
      named state Lnet/minecraft/client/render/entity/EntityRenderer;state:Lnet/minecraft/client/render/entity/state/EntityRenderState;
      intermediary field_53189 Lnet/minecraft/class_897;field_53189:Lnet/minecraft/class_10017;
      official b Lgro;b:Lgxu;
  • Constructor Details

    • EntityRenderer

      protected EntityRenderer(EntityRendererFactory.Context context)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/entity/EntityRenderer;<init>(Lnet/minecraft/client/render/entity/EntityRendererFactory$Context;)V
      intermediary <init> Lnet/minecraft/class_897;<init>(Lnet/minecraft/class_5617$class_5618;)V
      official <init> Lgro;<init>(Lgrp$a;)V
  • Method Details

    • getLight

      public final int getLight(T entity, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getLight Lnet/minecraft/client/render/entity/EntityRenderer;getLight(Lnet/minecraft/entity/Entity;F)I
      intermediary method_24088 Lnet/minecraft/class_897;method_24088(Lnet/minecraft/class_1297;F)I
      official a Lgro;a(Lbvj;F)I
    • getSkyLight

      protected int getSkyLight(T entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getSkyLight Lnet/minecraft/client/render/entity/EntityRenderer;getSkyLight(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)I
      intermediary method_27950 Lnet/minecraft/class_897;method_27950(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)I
      official b Lgro;b(Lbvj;Ljh;)I
    • getBlockLight

      protected int getBlockLight(T entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getBlockLight Lnet/minecraft/client/render/entity/EntityRenderer;getBlockLight(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)I
      intermediary method_24087 Lnet/minecraft/class_897;method_24087(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)I
      official a Lgro;a(Lbvj;Ljh;)I
    • shouldRender

      public boolean shouldRender(T entity, Frustum frustum, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named shouldRender Lnet/minecraft/client/render/entity/EntityRenderer;shouldRender(Lnet/minecraft/entity/Entity;Lnet/minecraft/client/render/Frustum;DDD)Z
      intermediary method_3933 Lnet/minecraft/class_897;method_3933(Lnet/minecraft/class_1297;Lnet/minecraft/class_4604;DDD)Z
      official a Lgro;a(Lbvj;Lgpb;DDD)Z
    • getBoundingBox

      protected Box getBoundingBox(T entity)
      Mappings:
      Namespace Name Mixin selector
      named getBoundingBox Lnet/minecraft/client/render/entity/EntityRenderer;getBoundingBox(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Box;
      intermediary method_62358 Lnet/minecraft/class_897;method_62358(Lnet/minecraft/class_1297;)Lnet/minecraft/class_238;
      official a Lgro;a(Lbvj;)Lfbs;
    • canBeCulled

      protected boolean canBeCulled(T entity)
      Mappings:
      Namespace Name Mixin selector
      named canBeCulled Lnet/minecraft/client/render/entity/EntityRenderer;canBeCulled(Lnet/minecraft/entity/Entity;)Z
      intermediary method_62406 Lnet/minecraft/class_897;method_62406(Lnet/minecraft/class_1297;)Z
      official b Lgro;b(Lbvj;)Z
    • getPositionOffset

      public Vec3d getPositionOffset(S state)
      Mappings:
      Namespace Name Mixin selector
      named getPositionOffset Lnet/minecraft/client/render/entity/EntityRenderer;getPositionOffset(Lnet/minecraft/client/render/entity/state/EntityRenderState;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_23169 Lnet/minecraft/class_897;method_23169(Lnet/minecraft/class_10017;)Lnet/minecraft/class_243;
      official a Lgro;a(Lgxu;)Lfbx;
    • render

      public void render(S state, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/render/entity/EntityRenderer;render(Lnet/minecraft/client/render/entity/state/EntityRenderState;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
      intermediary method_3936 Lnet/minecraft/class_897;method_3936(Lnet/minecraft/class_10017;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
      official a Lgro;a(Lgxu;Lfgr;Lglk;I)V
    • renderLeash

      private static void renderLeash(MatrixStack matrices, VertexConsumerProvider vertexConsumers, EntityRenderState.LeashData leashData)
      Mappings:
      Namespace Name Mixin selector
      named renderLeash Lnet/minecraft/client/render/entity/EntityRenderer;renderLeash(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/render/entity/state/EntityRenderState$LeashData;)V
      intermediary method_61049 Lnet/minecraft/class_897;method_61049(Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_10017$class_10018;)V
      official a Lgro;a(Lfgr;Lglk;Lgxu$a;)V
    • renderLeashSegment

      private static void renderLeashSegment(VertexConsumer vertexConsumer, Matrix4f matrix, float leashedEntityX, float leashedEntityY, float leashedEntityZ, int leashedEntityBlockLight, int leashHolderBlockLight, int leashedEntitySkyLight, int leashHolderSkyLight, float float2, float float3, float float4, float float5, int segmentIndex, boolean isLeashKnot)
      Mappings:
      Namespace Name Mixin selector
      named renderLeashSegment Lnet/minecraft/client/render/entity/EntityRenderer;renderLeashSegment(Lnet/minecraft/client/render/VertexConsumer;Lorg/joml/Matrix4f;FFFIIIIFFFFIZ)V
      intermediary method_61050 Lnet/minecraft/class_897;method_61050(Lnet/minecraft/class_4588;Lorg/joml/Matrix4f;FFFIIIIFFFFIZ)V
      official a Lgro;a(Lfgv;Lorg/joml/Matrix4f;FFFIIIIFFFFIZ)V
    • hasLabel

      protected boolean hasLabel(T entity, double squaredDistanceToCamera)
      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.

      Mappings:
      Namespace Name Mixin selector
      named hasLabel Lnet/minecraft/client/render/entity/EntityRenderer;hasLabel(Lnet/minecraft/entity/Entity;D)Z
      intermediary method_3921 Lnet/minecraft/class_897;method_3921(Lnet/minecraft/class_1297;D)Z
      official a Lgro;a(Lbvj;D)Z
    • getTextRenderer

      public TextRenderer getTextRenderer()
      Mappings:
      Namespace Name Mixin selector
      named getTextRenderer Lnet/minecraft/client/render/entity/EntityRenderer;getTextRenderer()Lnet/minecraft/client/font/TextRenderer;
      intermediary method_3932 Lnet/minecraft/class_897;method_3932()Lnet/minecraft/class_327;
      official e Lgro;e()Lfnp;
    • renderLabelIfPresent

      protected void renderLabelIfPresent(S state, Text text, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
      Mappings:
      Namespace Name Mixin selector
      named renderLabelIfPresent Lnet/minecraft/client/render/entity/EntityRenderer;renderLabelIfPresent(Lnet/minecraft/client/render/entity/state/EntityRenderState;Lnet/minecraft/text/Text;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
      intermediary method_3926 Lnet/minecraft/class_897;method_3926(Lnet/minecraft/class_10017;Lnet/minecraft/class_2561;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
      official a Lgro;a(Lgxu;Lxv;Lfgr;Lglk;I)V
    • getDisplayName

      @Nullable protected @Nullable Text getDisplayName(T entity)
      Mappings:
      Namespace Name Mixin selector
      named getDisplayName Lnet/minecraft/client/render/entity/EntityRenderer;getDisplayName(Lnet/minecraft/entity/Entity;)Lnet/minecraft/text/Text;
      intermediary method_62426 Lnet/minecraft/class_897;method_62426(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2561;
      official c Lgro;c(Lbvj;)Lxv;
    • getShadowRadius

      protected float getShadowRadius(S state)
      Mappings:
      Namespace Name Mixin selector
      named getShadowRadius Lnet/minecraft/client/render/entity/EntityRenderer;getShadowRadius(Lnet/minecraft/client/render/entity/state/EntityRenderState;)F
      intermediary method_55831 Lnet/minecraft/class_897;method_55831(Lnet/minecraft/class_10017;)F
      official b Lgro;b(Lgxu;)F
    • createRenderState

      public abstract S createRenderState()
      Mappings:
      Namespace Name Mixin selector
      named createRenderState Lnet/minecraft/client/render/entity/EntityRenderer;createRenderState()Lnet/minecraft/client/render/entity/state/EntityRenderState;
      intermediary method_55269 Lnet/minecraft/class_897;method_55269()Lnet/minecraft/class_10017;
      official d Lgro;d()Lgxu;
    • getAndUpdateRenderState

      public final S getAndUpdateRenderState(T entity, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getAndUpdateRenderState Lnet/minecraft/client/render/entity/EntityRenderer;getAndUpdateRenderState(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/entity/state/EntityRenderState;
      intermediary method_62425 Lnet/minecraft/class_897;method_62425(Lnet/minecraft/class_1297;F)Lnet/minecraft/class_10017;
      official b Lgro;b(Lbvj;F)Lgxu;
    • updateRenderState

      public void updateRenderState(T entity, S state, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named updateRenderState Lnet/minecraft/client/render/entity/EntityRenderer;updateRenderState(Lnet/minecraft/entity/Entity;Lnet/minecraft/client/render/entity/state/EntityRenderState;F)V
      intermediary method_62354 Lnet/minecraft/class_897;method_62354(Lnet/minecraft/class_1297;Lnet/minecraft/class_10017;F)V
      official a Lgro;a(Lbvj;Lgxu;F)V