package net.minecraft.client.renderer.entity; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.model.CowModel; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.animal.Cow; @Environment(EnvType.CLIENT) public class CowRenderer extends MobRenderer> { private static final ResourceLocation COW_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/cow/cow.png"); public CowRenderer(EntityRendererProvider.Context context) { super(context, new CowModel<>(context.bakeLayer(ModelLayers.COW)), 0.7F); } /** * Returns the location of an entity's texture. */ public ResourceLocation getTextureLocation(Cow entity) { return COW_LOCATION; } }