content: package net.optifine.entity.model;
  
  import net.minecraft.client.model.ModelBase;
  import net.minecraft.client.model.ModelHumanoidHead;
  import net.minecraft.client.model.ModelRenderer;
  import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
  import net.minecraft.client.renderer.tileentity.TileEntitySkullRenderer;
  import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
  import net.minecraft.src.Config;
  import net.minecraft.tileentity.TileEntitySkull;
  import net.optifine.reflect.Reflector;
  
  public class ModelAdapterHeadHumanoid extends ModelAdapter {
      public ModelAdapterHeadHumanoid() {
          super(TileEntitySkull.class, "head_humanoid", 0.0F);
      }
  
      public ModelBase makeModel() {
          return new ModelHumanoidHead();
      }
  
      public ModelRenderer getModelRenderer(ModelBase model, String modelPart) {
          if (!(model instanceof ModelHumanoidHead)) {
              return null;
          } else {
              ModelHumanoidHead modelhumanoidhead = (ModelHumanoidHead) model;
              return modelPart.equals("head") ? modelhumanoidhead.skeletonHead : (modelPart.equals("head2") ? (!Reflector.ModelHumanoidHead_head.exists() ? null : (ModelRenderer) Reflector.getFieldValue(modelhumanoidhead, Reflector.ModelHumanoidHead_head)) : null);
          }
      }
  
      public String[] getModelRendererNames() {
          return new String[]{"head"};
      }
  
      public IEntityRenderer makeEntityRender(ModelBase modelBase, float shadowSize) {
          TileEntityRendererDispatcher tileentityrendererdispatcher = TileEntityRendererDispatcher.instance;
          TileEntitySpecialRenderer tileentityspecialrenderer = tileentityrendererdispatcher.getSpecialRendererByClass(TileEntitySkull.class);
  
          if (!(tileentityspecialrenderer instanceof TileEntitySkullRenderer)) {
              return null;
          } else {
              if (tileentityspecialrenderer.getEntityClass() == null) {
                  tileentityspecialrenderer = new TileEntitySkullRenderer();
                  tileentityspecialrenderer.setRendererDispatcher(tileentityrendererdispatcher);
              }
  
              if (!Reflector.TileEntitySkullRenderer_humanoidHead.exists()) {
                  Config.warn("Field not found: TileEntitySkullRenderer.humanoidHead");
                  return null;
              } else {
                  Reflector.setFieldValue(tileentityspecialrenderer, Reflector.TileEntitySkullRenderer_humanoidHead, modelBase);
                  return tileentityspecialrenderer;
              }
          }
      }
  }
  