@Environment(value=CLIENT) public abstract class MobEntityRenderer<T extends MobEntity,M extends EntityModel<T>> extends LivingEntityRenderer<T,M>
features, model
dispatcher, shadowOpacity, shadowRadius
Constructor and Description |
---|
MobEntityRenderer(EntityRenderDispatcher dispatcher,
M model,
float shadowRadius) |
Modifier and Type | Method and 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> |
method_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) |
addFeature, getAnimationCounter, getAnimationProgress, getHandSwingProgress, getLyingAngle, getModel, getOverlay, getRenderLayer, isShaking, isVisible, scale, setupTransforms
getBlockLight, getFontRenderer, getLight, getPositionOffset, getRenderManager, getTexture, method_27950, renderLabelIfPresent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTexture
public MobEntityRenderer(EntityRenderDispatcher dispatcher, M model, float shadowRadius)
protected boolean hasLabel(T t)
EntityRenderer
Checks for a custom nametag on living entities, and for teams/team visibilities for players.
hasLabel
in class LivingEntityRenderer<T extends MobEntity,M extends EntityModel<T>>
public boolean shouldRender(T t, Frustum frustum, double double2, double double3, double double4)
shouldRender
in class EntityRenderer<T extends MobEntity>
public void render(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2)
render
in class LivingEntityRenderer<T extends MobEntity,M extends EntityModel<T>>
private <E extends Entity> void method_4073(T t, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, E e)
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)
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)