content: package net.minecraft.client.model;
  
  import net.minecraft.entity.Entity;
  import net.minecraft.util.MathHelper;
  
  public class ModelBook extends ModelBase {
      public ModelRenderer coverRight = (new ModelRenderer(this)).setTextureOffset(0, 0).addBox(-6.0F, -5.0F, 0.0F, 6, 10, 0);
      public ModelRenderer coverLeft = (new ModelRenderer(this)).setTextureOffset(16, 0).addBox(0.0F, -5.0F, 0.0F, 6, 10, 0);
      public ModelRenderer pagesRight = (new ModelRenderer(this)).setTextureOffset(0, 10).addBox(0.0F, -4.0F, -0.99F, 5, 8, 1);
      public ModelRenderer pagesLeft = (new ModelRenderer(this)).setTextureOffset(12, 10).addBox(0.0F, -4.0F, -0.01F, 5, 8, 1);
      public ModelRenderer flippingPageRight = (new ModelRenderer(this)).setTextureOffset(24, 10).addBox(0.0F, -4.0F, 0.0F, 5, 8, 0);
      public ModelRenderer flippingPageLeft = (new ModelRenderer(this)).setTextureOffset(24, 10).addBox(0.0F, -4.0F, 0.0F, 5, 8, 0);
      public ModelRenderer bookSpine = (new ModelRenderer(this)).setTextureOffset(12, 0).addBox(-1.0F, -5.0F, 0.0F, 2, 10, 0);
  
      public ModelBook() {
          this.coverRight.setRotationPoint(0.0F, 0.0F, -1.0F);
          this.coverLeft.setRotationPoint(0.0F, 0.0F, 1.0F);
          this.bookSpine.rotateAngleY = ((float) Math.PI / 2F);
      }
  
      public void render(Entity entityIn, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float scale) {
          this.setRotationAngles(p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, scale, entityIn);
          this.coverRight.render(scale);
          this.coverLeft.render(scale);
          this.bookSpine.render(scale);
          this.pagesRight.render(scale);
          this.pagesLeft.render(scale);
          this.flippingPageRight.render(scale);
          this.flippingPageLeft.render(scale);
      }
  
      public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn) {
          float f = (MathHelper.sin(limbSwing * 0.02F) * 0.1F + 1.25F) * netHeadYaw;
          this.coverRight.rotateAngleY = (float) Math.PI + f;
          this.coverLeft.rotateAngleY = -f;
          this.pagesRight.rotateAngleY = f;
          this.pagesLeft.rotateAngleY = -f;
          this.flippingPageRight.rotateAngleY = f - f * 2.0F * limbSwingAmount;
          this.flippingPageLeft.rotateAngleY = f - f * 2.0F * ageInTicks;
          this.pagesRight.rotationPointX = MathHelper.sin(f);
          this.pagesLeft.rotationPointX = MathHelper.sin(f);
          this.flippingPageRight.rotationPointX = MathHelper.sin(f);
          this.flippingPageLeft.rotationPointX = MathHelper.sin(f);
      }
  }
  