Class MobEntityRenderer<T extends MobEntity,M extends EntityModel<T>>
java.lang.Object
net.minecraft.client.render.entity.EntityRenderer<T>
net.minecraft.client.render.entity.LivingEntityRenderer<T,M>
net.minecraft.client.render.entity.MobEntityRenderer<T,M>
- All Implemented Interfaces:
FeatureRendererContext<T,M>
- Direct Known Subclasses:
BatEntityRenderer
,BeeEntityRenderer
,BipedEntityRenderer
,BlazeEntityRenderer
,CatEntityRenderer
,ChickenEntityRenderer
,CodEntityRenderer
,CowEntityRenderer
,CreeperEntityRenderer
,DolphinEntityRenderer
,EndermanEntityRenderer
,EndermiteEntityRenderer
,FoxEntityRenderer
,GhastEntityRenderer
,GiantEntityRenderer
,GuardianEntityRenderer
,HoglinEntityRenderer
,HorseBaseEntityRenderer
,IllagerEntityRenderer
,IronGolemEntityRenderer
,LlamaEntityRenderer
,MagmaCubeEntityRenderer
,MooshroomEntityRenderer
,OcelotEntityRenderer
,PandaEntityRenderer
,ParrotEntityRenderer
,PhantomEntityRenderer
,PigEntityRenderer
,PolarBearEntityRenderer
,PufferfishEntityRenderer
,RabbitEntityRenderer
,RavagerEntityRenderer
,SalmonEntityRenderer
,SheepEntityRenderer
,ShulkerEntityRenderer
,SilverfishEntityRenderer
,SlimeEntityRenderer
,SnowGolemEntityRenderer
,SpiderEntityRenderer
,SquidEntityRenderer
,StriderEntityRenderer
,TropicalFishEntityRenderer
,TurtleEntityRenderer
,VillagerEntityRenderer
,WanderingTraderEntityRenderer
,WitchEntityRenderer
,WitherEntityRenderer
,WolfEntityRenderer
,ZoglinEntityRenderer
@Environment(CLIENT) public abstract class MobEntityRenderer<T extends MobEntity,M extends EntityModel<T>> extends LivingEntityRenderer<T,M>
-
Field Summary
Fields inherited from class net.minecraft.client.render.entity.LivingEntityRenderer
features, model
Fields inherited from class net.minecraft.client.render.entity.EntityRenderer
dispatcher, shadowOpacity, shadowRadius
-
Constructor Summary
Constructors Constructor Description MobEntityRenderer(EntityRenderDispatcher dispatcher, M model, float shadowRadius)
-
Method Summary
Modifier and Type Method Description protected boolean
hasLabel(T t)
Determines whether the passed entity should render with a nameplate above its head.static void
method_23186(VertexConsumer vertexConsumer, Matrix4f matrix4f, float float2, float float3, float float4, int int2, int int3, int int4, int int5, float float5, float float6, float float7, float float8)
static void
method_23187(VertexConsumer vertexConsumer, Matrix4f matrix4f, int int2, float float2, float float3, float float4, float float5, float float6, int int3, int int4, boolean bool, float float7, float float8)
private <E extends Entity>
voidmethod_4073(T t, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, E e)
void
render(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
boolean
shouldRender(T t, Frustum frustum, double double2, double double3, double double4)
Methods inherited from class net.minecraft.client.render.entity.LivingEntityRenderer
addFeature, getAnimationCounter, getAnimationProgress, getHandSwingProgress, getLyingAngle, getModel, getOverlay, getRenderLayer, isShaking, isVisible, scale, setupTransforms
Methods inherited from class net.minecraft.client.render.entity.EntityRenderer
getBlockLight, getFontRenderer, getLight, getPositionOffset, getRenderManager, getTexture, method_27950, renderLabelIfPresent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.render.entity.feature.FeatureRendererContext
getTexture
-
Constructor Details
-
MobEntityRenderer
-
-
Method Details
-
hasLabel
Description copied from class:EntityRenderer
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.
- Overrides:
hasLabel
in classLivingEntityRenderer<T extends MobEntity,M extends EntityModel<T>>
-
shouldRender
- Overrides:
shouldRender
in classEntityRenderer<T extends MobEntity>
-
render
public void render(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)- Overrides:
render
in classLivingEntityRenderer<T extends MobEntity,M extends EntityModel<T>>
-
method_4073
private <E extends Entity> void method_4073(T t, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, E e) -
method_23186
public static void method_23186(VertexConsumer vertexConsumer, Matrix4f matrix4f, float float2, float float3, float float4, int int2, int int3, int int4, int int5, float float5, float float6, float float7, float float8) -
method_23187
public static void method_23187(VertexConsumer vertexConsumer, Matrix4f matrix4f, int int2, float float2, float float3, float float4, float float5, float float6, int int3, int int4, boolean bool, float float7, float float8)
-