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 Summary
Fields Modifier and Type Field Description protected EntityRenderDispatcher
dispatcher
protected float
shadowOpacity
protected float
shadowRadius
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityRenderer(EntityRenderDispatcher dispatcher)
-
Method Summary
Modifier and Type Method Description protected int
getBlockLight(T t, BlockPos blockPos)
TextRenderer
getFontRenderer()
int
getLight(T entity, float tickDelta)
Vec3d
getPositionOffset(T entity, float tickDelta)
EntityRenderDispatcher
getRenderManager()
abstract Identifier
getTexture(T entity)
protected boolean
hasLabel(T entity)
Determines whether the passed entity should render with a nameplate above its head.protected int
method_27950(T t, BlockPos blockPos)
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
-
shadowRadius
protected float shadowRadius -
shadowOpacity
protected float shadowOpacity
-
-
Constructor Details
-
EntityRenderer
-
-
Method Details
-
getLight
-
method_27950
-
getBlockLight
-
shouldRender
-
getPositionOffset
-
render
public void render(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) -
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.
-
getTexture
-
getFontRenderer
-
renderLabelIfPresent
protected void renderLabelIfPresent(T entity, Text text, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) -
getRenderManager
-