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:
AbstractHorseEntityRenderer
,AllayEntityRenderer
,AxolotlEntityRenderer
,BatEntityRenderer
,BeeEntityRenderer
,BipedEntityRenderer
,BlazeEntityRenderer
,CamelEntityRenderer
,CatEntityRenderer
,ChickenEntityRenderer
,CodEntityRenderer
,CowEntityRenderer
,CreeperEntityRenderer
,DolphinEntityRenderer
,EndermanEntityRenderer
,EndermiteEntityRenderer
,FoxEntityRenderer
,FrogEntityRenderer
,GhastEntityRenderer
,GiantEntityRenderer
,GoatEntityRenderer
,GuardianEntityRenderer
,HoglinEntityRenderer
,IllagerEntityRenderer
,IronGolemEntityRenderer
,LlamaEntityRenderer
,MagmaCubeEntityRenderer
,MooshroomEntityRenderer
,OcelotEntityRenderer
,PandaEntityRenderer
,ParrotEntityRenderer
,PhantomEntityRenderer
,PigEntityRenderer
,PolarBearEntityRenderer
,PufferfishEntityRenderer
,RabbitEntityRenderer
,RavagerEntityRenderer
,SalmonEntityRenderer
,SheepEntityRenderer
,ShulkerEntityRenderer
,SilverfishEntityRenderer
,SlimeEntityRenderer
,SnifferEntityRenderer
,SnowGolemEntityRenderer
,SpiderEntityRenderer
,SquidEntityRenderer
,StriderEntityRenderer
,TadpoleEntityRenderer
,TropicalFishEntityRenderer
,TurtleEntityRenderer
,VexEntityRenderer
,VillagerEntityRenderer
,WanderingTraderEntityRenderer
,WardenEntityRenderer
,WitchEntityRenderer
,WitherEntityRenderer
,WolfEntityRenderer
,ZoglinEntityRenderer
@Environment(CLIENT)
public abstract class MobEntityRenderer<T extends MobEntity,M extends EntityModel<T>>
extends LivingEntityRenderer<T,M>
- Mappings:
Namespace Name official fok
intermediary net/minecraft/class_927
named net/minecraft/client/render/entity/MobEntityRenderer
-
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, field_32921, shadowOpacity, shadowRadius
-
Constructor Summary
ConstructorDescriptionMobEntityRenderer
(EntityRendererFactory.Context ctx, M model, float shadowRadius) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Determines whether the passed entity should render with a nameplate above its head.void
render
(T t, float float2, float float3, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2) private <E extends Entity>
voidrenderLeash
(T entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider provider, E holdingEntity) private static void
renderLeashPiece
(VertexConsumer vertexConsumer, Matrix4f positionMatrix, float float2, float float3, float float4, int leashedEntityBlockLight, int holdingEntityBlockLight, int leashedEntitySkyLight, int holdingEntitySkyLight, float float5, float float6, float float7, float float8, int pieceIndex, boolean isLeashKnot) 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, shouldFlipUpsideDown
Methods inherited from class net.minecraft.client.render.entity.EntityRenderer
getBlockLight, getLight, getPositionOffset, getSkyLight, getTextRenderer, getTexture, 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
-
Field Details
-
LEASH_PIECE_COUNT
public static final int LEASH_PIECE_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lfok;h:I
intermediary field_32940
Lnet/minecraft/class_927;field_32940:I
named LEASH_PIECE_COUNT
Lnet/minecraft/client/render/entity/MobEntityRenderer;LEASH_PIECE_COUNT:I
-
-
Constructor Details
-
MobEntityRenderer
- Mappings:
Namespace Name Mixin selector official <init>
Lfof;<init>(Lfne$a;Lezs;F)V
intermediary <init>
Lnet/minecraft/class_922;<init>(Lnet/minecraft/class_5617$class_5618;Lnet/minecraft/class_583;F)V
named <init>
Lnet/minecraft/client/render/entity/LivingEntityRenderer;<init>(Lnet/minecraft/client/render/entity/EntityRendererFactory$Context;Lnet/minecraft/client/render/entity/model/EntityModel;F)V
-
-
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>> - Mappings:
Namespace Name Mixin selector official a
Lfok;a(Lbfz;)Z
intermediary method_4071
Lnet/minecraft/class_927;method_4071(Lnet/minecraft/class_1308;)Z
named hasLabel
Lnet/minecraft/client/render/entity/MobEntityRenderer;hasLabel(Lnet/minecraft/entity/mob/MobEntity;)Z
-
shouldRender
- Overrides:
shouldRender
in classEntityRenderer<T extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lfok;a(Lbfz;Lflf;DDD)Z
intermediary method_4068
Lnet/minecraft/class_927;method_4068(Lnet/minecraft/class_1308;Lnet/minecraft/class_4604;DDD)Z
named shouldRender
Lnet/minecraft/client/render/entity/MobEntityRenderer;shouldRender(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/client/render/Frustum;DDD)Z
-
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>> - Mappings:
Namespace Name Mixin selector official a
Lfok;a(Lbfz;FFLehe;Lfig;I)V
intermediary method_4072
Lnet/minecraft/class_927;method_4072(Lnet/minecraft/class_1308;FFLnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
named render
Lnet/minecraft/client/render/entity/MobEntityRenderer;render(Lnet/minecraft/entity/mob/MobEntity;FFLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V
-
renderLeash
private <E extends Entity> void renderLeash(T entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider provider, E holdingEntity) - Mappings:
Namespace Name Mixin selector official a
Lfok;a(Lbfz;FLehe;Lfig;Lbfh;)V
intermediary method_4073
Lnet/minecraft/class_927;method_4073(Lnet/minecraft/class_1308;FLnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_1297;)V
named renderLeash
Lnet/minecraft/client/render/entity/MobEntityRenderer;renderLeash(Lnet/minecraft/entity/mob/MobEntity;FLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/entity/Entity;)V
-
renderLeashPiece
private static void renderLeashPiece(VertexConsumer vertexConsumer, Matrix4f positionMatrix, float float2, float float3, float float4, int leashedEntityBlockLight, int holdingEntityBlockLight, int leashedEntitySkyLight, int holdingEntitySkyLight, float float5, float float6, float float7, float float8, int pieceIndex, boolean isLeashKnot) - Mappings:
Namespace Name Mixin selector official a
Lfok;a(Lehi;Lorg/joml/Matrix4f;FFFIIIIFFFFIZ)V
intermediary method_23187
Lnet/minecraft/class_927;method_23187(Lnet/minecraft/class_4588;Lorg/joml/Matrix4f;FFFIIIIFFFFIZ)V
named renderLeashPiece
Lnet/minecraft/client/render/entity/MobEntityRenderer;renderLeashPiece(Lnet/minecraft/client/render/VertexConsumer;Lorg/joml/Matrix4f;FFFIIIIFFFFIZ)V
-