package net.minecraft.client.renderer.entity; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.model.ZombieModel; import net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.monster.Zombie; @Environment(EnvType.CLIENT) public abstract class AbstractZombieRenderer> extends HumanoidMobRenderer { private static final ResourceLocation ZOMBIE_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/zombie/zombie.png"); protected AbstractZombieRenderer(EntityRendererProvider.Context context, M model, M innerModel, M outerModel) { super(context, model, 0.5F); this.addLayer(new HumanoidArmorLayer<>(this, innerModel, outerModel, context.getModelManager())); } /** * Returns the location of an entity's texture. */ public ResourceLocation getTextureLocation(Zombie entity) { return ZOMBIE_LOCATION; } protected boolean isShaking(T entity) { return super.isShaking(entity) || entity.isUnderWaterConverting(); } }