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
- Mappings:
Namespace Name official emi
intermediary net/minecraft/class_897
named net/minecraft/client/render/entity/EntityRenderer
-
Field Summary
Fields Modifier and Type Field Description protected EntityRenderDispatcher
dispatcher
protected float
shadowOpacity
protected float
shadowRadius
private TextRenderer
textRenderer
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityRenderer(EntityRendererFactory.Context ctx)
-
Method Summary
Modifier and Type Method Description protected int
getBlockLight(T entity, BlockPos pos)
TextRenderer
getFontRenderer()
int
getLight(T entity, float tickDelta)
Vec3d
getPositionOffset(T entity, float tickDelta)
protected int
getSkyLight(T entity, BlockPos pos)
abstract Identifier
getTexture(T entity)
protected boolean
hasLabel(T entity)
Determines whether the passed entity should render with a nameplate above its head.void
render(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
protected void
renderLabelIfPresent(T entity, Text text, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
boolean
shouldRender(T entity, Frustum frustum, double x, double y, double z)
-
Field Details
-
dispatcher
- Mappings:
Namespace Name Mixin selector official b
Lemi;b:Lemh;
intermediary field_4676
Lnet/minecraft/class_897;field_4676:Lnet/minecraft/class_898;
named dispatcher
Lnet/minecraft/client/render/entity/EntityRenderer;dispatcher:Lnet/minecraft/client/render/entity/EntityRenderDispatcher;
-
textRenderer
- Mappings:
Namespace Name Mixin selector official a
Lemi;a:Ldrf;
intermediary field_27761
Lnet/minecraft/class_897;field_27761:Lnet/minecraft/class_327;
named textRenderer
Lnet/minecraft/client/render/entity/EntityRenderer;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
shadowRadius
protected float shadowRadius- Mappings:
Namespace Name Mixin selector official c
Lemi;c:F
intermediary field_4673
Lnet/minecraft/class_897;field_4673:F
named shadowRadius
Lnet/minecraft/client/render/entity/EntityRenderer;shadowRadius:F
-
shadowOpacity
protected float shadowOpacity- Mappings:
Namespace Name Mixin selector official d
Lemi;d:F
intermediary field_4672
Lnet/minecraft/class_897;field_4672:F
named shadowOpacity
Lnet/minecraft/client/render/entity/EntityRenderer;shadowOpacity:F
-
-
Constructor Details
-
EntityRenderer
- Mappings:
Namespace Name Mixin selector official <init>
Lemi;<init>(Lemj$a;)V
intermediary <init>
Lnet/minecraft/class_897;<init>(Lnet/minecraft/class_5617$class_5618;)V
named <init>
Lnet/minecraft/client/render/entity/EntityRenderer;<init>(Lnet/minecraft/client/render/entity/EntityRendererFactory$Context;)V
-
-
Method Details
-
getLight
- Mappings:
Namespace Name Mixin selector official b
Lemi;b(Laqv;F)I
intermediary method_24088
Lnet/minecraft/class_897;method_24088(Lnet/minecraft/class_1297;F)I
named getLight
Lnet/minecraft/client/render/entity/EntityRenderer;getLight(Lnet/minecraft/entity/Entity;F)I
-
getSkyLight
- Mappings:
Namespace Name Mixin selector official b
Lemi;b(Laqv;Lfx;)I
intermediary method_27950
Lnet/minecraft/class_897;method_27950(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)I
named getSkyLight
Lnet/minecraft/client/render/entity/EntityRenderer;getSkyLight(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)I
-
getBlockLight
- Mappings:
Namespace Name Mixin selector official a
Lemi;a(Laqv;Lfx;)I
intermediary method_24087
Lnet/minecraft/class_897;method_24087(Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)I
named getBlockLight
Lnet/minecraft/client/render/entity/EntityRenderer;getBlockLight(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)I
-
shouldRender
- Mappings:
Namespace Name Mixin selector official a
Lemi;a(Laqv;Lekl;DDD)Z
intermediary method_3933
Lnet/minecraft/class_897;method_3933(Lnet/minecraft/class_1297;Lnet/minecraft/class_4604;DDD)Z
named shouldRender
Lnet/minecraft/client/render/entity/EntityRenderer;shouldRender(Lnet/minecraft/entity/Entity;Lnet/minecraft/client/render/Frustum;DDD)Z
-
getPositionOffset
- Mappings:
Namespace Name Mixin selector official a
Lemi;a(Laqv;F)Ldiu;
intermediary method_23169
Lnet/minecraft/class_897;method_23169(Lnet/minecraft/class_1297;F)Lnet/minecraft/class_243;
named getPositionOffset
Lnet/minecraft/client/render/entity/EntityRenderer;getPositionOffset(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/util/math/Vec3d;
-
render
public void render(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)- Mappings:
Namespace Name Mixin selector official a
Lemi;a(Laqv;FFLdlr;Lehq;I)V
intermediary method_3936
Lnet/minecraft/class_897;method_3936(Lnet/minecraft/class_1297;FFLnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
named render
Lnet/minecraft/client/render/entity/EntityRenderer;render(Lnet/minecraft/entity/Entity;FFLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
-
hasLabel
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 official b
Lemi;b(Laqv;)Z
intermediary method_3921
Lnet/minecraft/class_897;method_3921(Lnet/minecraft/class_1297;)Z
named hasLabel
Lnet/minecraft/client/render/entity/EntityRenderer;hasLabel(Lnet/minecraft/entity/Entity;)Z
-
getTexture
- Mappings:
Namespace Name Mixin selector official a
Lemi;a(Laqv;)Lwb;
intermediary method_3931
Lnet/minecraft/class_897;method_3931(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2960;
named getTexture
Lnet/minecraft/client/render/entity/EntityRenderer;getTexture(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/Identifier;
-
getFontRenderer
- Mappings:
Namespace Name Mixin selector official b
Lemi;b()Ldrf;
intermediary method_3932
Lnet/minecraft/class_897;method_3932()Lnet/minecraft/class_327;
named getFontRenderer
Lnet/minecraft/client/render/entity/EntityRenderer;getFontRenderer()Lnet/minecraft/client/font/TextRenderer;
-
renderLabelIfPresent
protected void renderLabelIfPresent(T entity, Text text, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)- Mappings:
Namespace Name Mixin selector official a
Lemi;a(Laqv;Loi;Ldlr;Lehq;I)V
intermediary method_3926
Lnet/minecraft/class_897;method_3926(Lnet/minecraft/class_1297;Lnet/minecraft/class_2561;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
named renderLabelIfPresent
Lnet/minecraft/client/render/entity/EntityRenderer;renderLabelIfPresent(Lnet/minecraft/entity/Entity;Lnet/minecraft/text/Text;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
-