Class MobRenderer<T extends Mob,M extends EntityModel<T>>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.LivingEntityRenderer<T,M>
net.minecraft.client.renderer.entity.MobRenderer<T,M>
- All Implemented Interfaces:
RenderLayerParent<T,M>
- Direct Known Subclasses:
AbstractHorseRenderer
,AxolotlRenderer
,BatRenderer
,BeeRenderer
,BlazeRenderer
,CatRenderer
,ChickenRenderer
,CodRenderer
,CowRenderer
,CreeperRenderer
,DolphinRenderer
,EndermanRenderer
,EndermiteRenderer
,FoxRenderer
,GhastRenderer
,GiantMobRenderer
,GoatRenderer
,GuardianRenderer
,HoglinRenderer
,HumanoidMobRenderer
,IllagerRenderer
,IronGolemRenderer
,LlamaRenderer
,MagmaCubeRenderer
,MushroomCowRenderer
,OcelotRenderer
,PandaRenderer
,ParrotRenderer
,PhantomRenderer
,PigRenderer
,PolarBearRenderer
,PufferfishRenderer
,RabbitRenderer
,RavagerRenderer
,SalmonRenderer
,SheepRenderer
,ShulkerRenderer
,SilverfishRenderer
,SlimeRenderer
,SnowGolemRenderer
,SpiderRenderer
,SquidRenderer
,StriderRenderer
,TropicalFishRenderer
,TurtleRenderer
,VillagerRenderer
,WanderingTraderRenderer
,WitchRenderer
,WitherBossRenderer
,WolfRenderer
,ZoglinRenderer
public abstract class MobRenderer<T extends Mob,M extends EntityModel<T>>
extends LivingEntityRenderer<T,M>
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
layers, model
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionMobRenderer(EntityRendererProvider.Context p_174304_, M p_174305_, float p_174306_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addVertexPair(VertexConsumer p_174308_, Matrix4f p_174309_, float p_174310_, float p_174311_, float p_174312_, int p_174313_, int p_174314_, int p_174315_, int p_174316_, float p_174317_, float p_174318_, float p_174319_, float p_174320_, int p_174321_, boolean p_174322_)
void
render(T p_115455_, float p_115456_, float p_115457_, PoseStack p_115458_, MultiBufferSource p_115459_, int p_115460_)
private <E extends Entity>
voidrenderLeash(T p_115462_, float p_115463_, PoseStack p_115464_, MultiBufferSource p_115465_, E p_115466_)
boolean
shouldRender(T p_115468_, Frustum p_115469_, double p_115470_, double p_115471_, double p_115472_)
protected boolean
shouldShowName(T p_115506_)
Methods inherited from class net.minecraft.client.renderer.entity.LivingEntityRenderer
addLayer, getAttackAnim, getBob, getFlipDegrees, getModel, getOverlayCoords, getRenderType, getWhiteOverlayProgress, isBodyVisible, isShaking, scale, setupRotations
Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, getTextureLocation, renderNameTag
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.renderer.entity.RenderLayerParent
getTextureLocation
-
Field Details
-
LEASH_RENDER_STEPS
public static final int LEASH_RENDER_STEPS- See Also:
- Constant Field Values
-
-
Constructor Details
-
MobRenderer
-
-
Method Details
-
shouldShowName
- Overrides:
shouldShowName
in classLivingEntityRenderer<T extends Mob,M extends EntityModel<T>>
-
shouldRender
public boolean shouldRender(T p_115468_, Frustum p_115469_, double p_115470_, double p_115471_, double p_115472_)- Overrides:
shouldRender
in classEntityRenderer<T extends Mob>
-
render
public void render(T p_115455_, float p_115456_, float p_115457_, PoseStack p_115458_, MultiBufferSource p_115459_, int p_115460_)- Overrides:
render
in classLivingEntityRenderer<T extends Mob,M extends EntityModel<T>>
-
renderLeash
private <E extends Entity> void renderLeash(T p_115462_, float p_115463_, PoseStack p_115464_, MultiBufferSource p_115465_, E p_115466_) -
addVertexPair
private static void addVertexPair(VertexConsumer p_174308_, Matrix4f p_174309_, float p_174310_, float p_174311_, float p_174312_, int p_174313_, int p_174314_, int p_174315_, int p_174316_, float p_174317_, float p_174318_, float p_174319_, float p_174320_, int p_174321_, boolean p_174322_)
-