content: package com.github.alexthe666.iceandfire.client.model;
  
  import com.github.alexthe666.citadel.client.model.basic.BasicEntityModel;
  import com.github.alexthe666.citadel.client.model.basic.BasicModelPart;
  import com.github.alexthe666.iceandfire.entity.EntityChainTie;
  import com.google.common.collect.ImmutableList;
  import org.jetbrains.annotations.NotNull;
  
  public class ModelChainTie extends BasicEntityModel<EntityChainTie> {
      public BasicModelPart knotRenderer;
  
      public ModelChainTie() {
          this(0, 0, 32, 32);
      }
  
      public ModelChainTie(int width, int height, int texWidth, int texHeight) {
          this.knotRenderer = new BasicModelPart(this, width, height);
          this.knotRenderer.addBox(-4.0F, 2.0F, -4.0F, 8, 12, 8, 1.0F);
          this.knotRenderer.setRotationPoint(0.0F, 0.0F, 0.0F);
      }
  
      @Override
      public void setupAnim(@NotNull EntityChainTie entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
          this.knotRenderer.rotateAngleY = netHeadYaw * 0.017453292F;
          this.knotRenderer.rotateAngleX = headPitch * 0.017453292F;
      }
  
      @Override
      public Iterable<BasicModelPart> parts() {
          return ImmutableList.of(knotRenderer);
      }
  }
  