package net.minecraft.client.renderer.entity;

import net.minecraft.client.renderer.entity.layers.SaddleLayer;
import net.minecraft.client.renderer.entity.model.PigModel;
import net.minecraft.entity.passive.PigEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class PigRenderer extends MobRenderer<PigEntity, PigModel<PigEntity>> {
   private static final ResourceLocation PIG_TEXTURES = new ResourceLocation("textures/entity/pig/pig.png");

   public PigRenderer(EntityRendererManager renderManagerIn) {
      super(renderManagerIn, new PigModel<>(), 0.7F);
      this.addLayer(new SaddleLayer(this));
   }

   protected ResourceLocation getEntityTexture(PigEntity entity) {
      return PIG_TEXTURES;
   }
}