content: package net.minecraft.client.renderer.block.model;
  
  import net.minecraft.client.renderer.texture.TextureAtlasSprite;
  
  import java.util.Arrays;
  
  public class BreakingFour extends BakedQuad {
      private final TextureAtlasSprite texture;
  
      public BreakingFour(BakedQuad quad, TextureAtlasSprite textureIn) {
          super(Arrays.copyOf(quad.getVertexData(), quad.getVertexData().length), quad.tintIndex, FaceBakery.getFacingFromVertexData(quad.getVertexData()));
          this.texture = textureIn;
          this.remapQuad();
          this.fixVertexData();
      }
  
      private void remapQuad() {
          for (int i = 0; i < 4; ++i) {
              this.remapVert(i);
          }
      }
  
      private void remapVert(int vertex) {
          int i = this.vertexData.length / 4;
          int j = i * vertex;
          float f = Float.intBitsToFloat(this.vertexData[j]);
          float f1 = Float.intBitsToFloat(this.vertexData[j + 1]);
          float f2 = Float.intBitsToFloat(this.vertexData[j + 2]);
          float f3 = 0.0F;
          float f4 = 0.0F;
  
          switch (this.face) {
              case DOWN:
                  f3 = f * 16.0F;
                  f4 = (1.0F - f2) * 16.0F;
                  break;
  
              case UP:
                  f3 = f * 16.0F;
                  f4 = f2 * 16.0F;
                  break;
  
              case NORTH:
                  f3 = (1.0F - f) * 16.0F;
                  f4 = (1.0F - f1) * 16.0F;
                  break;
  
              case SOUTH:
                  f3 = f * 16.0F;
                  f4 = (1.0F - f1) * 16.0F;
                  break;
  
              case WEST:
                  f3 = f2 * 16.0F;
                  f4 = (1.0F - f1) * 16.0F;
                  break;
  
              case EAST:
                  f3 = (1.0F - f2) * 16.0F;
                  f4 = (1.0F - f1) * 16.0F;
          }
  
          this.vertexData[j + 4] = Float.floatToRawIntBits(this.texture.getInterpolatedU(f3));
          this.vertexData[j + 4 + 1] = Float.floatToRawIntBits(this.texture.getInterpolatedV(f4));
      }
  }
  