Class MobEntityRenderer<T extends MobEntity,​M extends EntityModel<T>>

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>
  • Constructor Details

    • MobEntityRenderer

      public MobEntityRenderer​(EntityRenderDispatcher dispatcher, M model, float shadowRadius)
  • Method Details

    • hasLabel

      protected boolean hasLabel​(T t)
      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 class LivingEntityRenderer<T extends MobEntity,​M extends EntityModel<T>>
    • shouldRender

      public boolean shouldRender​(T t, Frustum frustum, double double2, double double3, double double4)
      Overrides:
      shouldRender in class EntityRenderer<T extends MobEntity>
    • render

      public void render​(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
      Overrides:
      render in class LivingEntityRenderer<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)