content: package thebetweenlands.client.render.model.armor;
  
  import net.minecraft.client.model.ModelRenderer;
  import net.minecraft.entity.Entity;
  
  /**
   * BLSpiritTreeSmoll - TripleHeadedSheep
   * Created using Tabula 7.0.0
   */
  public class ModelSpiritTreeFaceMaskSmall extends ModelBodyAttachment {
  	public ModelRenderer head_base;
  	public ModelRenderer head2;
  	public ModelRenderer nose1;
  	public ModelRenderer nose2;
  
  	private boolean isAttachment;
  	
  	public ModelSpiritTreeFaceMaskSmall(boolean isAttachment) {
  		this.isAttachment = isAttachment;
  		
  		this.textureWidth = 64;
  		this.textureHeight = 64;
  		this.nose1 = new ModelRenderer(this, 0, 18);
  		this.nose1.setRotationPoint(0.0F, 3.0F, -1.0F);
  		this.nose1.addBox(-1.5F, -3.0F, -2.0F, 3, 3, 2, 0.0F);
  		this.setRotateAngle(nose1, 0.045553093477052F, 0.0F, 0.0F);
  		this.nose2 = new ModelRenderer(this, 0, 24);
  		this.nose2.setRotationPoint(0.0F, -3.0F, -2.0F);
  		this.nose2.addBox(-1.5F, -6.0F, 0.0F, 3, 6, 3, 0.0F);
  		this.setRotateAngle(nose2, -0.18203784098300857F, 0.0F, 0.0F);
  		this.head_base = new ModelRenderer(this, 0, 0);
  		this.head_base.setRotationPoint(0.0F, 16.5F, 8.0F);
  		this.head_base.addBox(-5.0F, -4.0F, -2.0F, 10, 8, 2, 0.0F);
  		this.head2 = new ModelRenderer(this, 0, 11);
  		this.head2.setRotationPoint(0.0F, 3.0F, -2.0F);
  		this.head2.addBox(-3.0F, 0.0F, 0.0F, 6, 4, 2, 0.0F);
  		this.setRotateAngle(head2, 0.091106186954104F, 0.0F, 0.0F);
  		this.head_base.addChild(this.nose1);
  		this.nose1.addChild(this.nose2);
  		this.head_base.addChild(this.head2);
  
          this.bipedHead.addChild(this.head_base);
      }
  
  	@Override
  	public void render(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
  		if(this.isAttachment) {
  			this.head_base.rotationPointY = -4;
  			this.head_base.rotationPointZ = -4;
  			
  			super.render(entity, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
  		} else {
  			this.head_base.rotationPointY = 16.5F;
  			this.head_base.rotationPointZ = 8;
  			
  			this.head_base.render(scale);
  		}
  	}
  	
  	/**
  	 * This is a helper function from Tabula to set the rotation of model parts
  	 */
  	public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  		modelRenderer.rotateAngleX = x;
  		modelRenderer.rotateAngleY = y;
  		modelRenderer.rotateAngleZ = z;
  	}
  }
  