本文整理匯總了Java中net.minecraft.util.Icon.getInterpolatedU方法的典型用法代碼示例。如果您正苦於以下問題:Java Icon.getInterpolatedU方法的具體用法?Java Icon.getInterpolatedU怎麽用?Java Icon.getInterpolatedU使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.util.Icon
的用法示例。
在下文中一共展示了Icon.getInterpolatedU方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: renderPistonRodUD
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Render piston rod up/down
*/
public void renderPistonRodUD(double par1, double par3, double par5, double par7, double par9, double par11, float par13, double par14)
{
Icon icon = BlockPistonBase.getPistonBaseIcon("piston_side");
if (this.hasOverrideBlockTexture())
{
icon = this.overrideBlockTexture;
}
Tessellator tessellator = Tessellator.instance;
double d7 = (double)icon.getMinU();
double d8 = (double)icon.getMinV();
double d9 = (double)icon.getInterpolatedU(par14);
double d10 = (double)icon.getInterpolatedV(4.0D);
tessellator.setColorOpaque_F(par13, par13, par13);
tessellator.addVertexWithUV(par1, par7, par9, d9, d8);
tessellator.addVertexWithUV(par1, par5, par9, d7, d8);
tessellator.addVertexWithUV(par3, par5, par11, d7, d10);
tessellator.addVertexWithUV(par3, par7, par11, d9, d10);
}
示例2: renderPistonRodSN
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Render piston rod south/north
*/
public void renderPistonRodSN(double par1, double par3, double par5, double par7, double par9, double par11, float par13, double par14)
{
Icon icon = BlockPistonBase.getPistonBaseIcon("piston_side");
if (this.hasOverrideBlockTexture())
{
icon = this.overrideBlockTexture;
}
Tessellator tessellator = Tessellator.instance;
double d7 = (double)icon.getMinU();
double d8 = (double)icon.getMinV();
double d9 = (double)icon.getInterpolatedU(par14);
double d10 = (double)icon.getInterpolatedV(4.0D);
tessellator.setColorOpaque_F(par13, par13, par13);
tessellator.addVertexWithUV(par1, par5, par11, d9, d8);
tessellator.addVertexWithUV(par1, par5, par9, d7, d8);
tessellator.addVertexWithUV(par3, par7, par9, d7, d10);
tessellator.addVertexWithUV(par3, par7, par11, d9, d10);
}
示例3: renderPistonRodEW
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Render piston rod east/west
*/
public void renderPistonRodEW(double par1, double par3, double par5, double par7, double par9, double par11, float par13, double par14)
{
Icon icon = BlockPistonBase.getPistonBaseIcon("piston_side");
if (this.hasOverrideBlockTexture())
{
icon = this.overrideBlockTexture;
}
Tessellator tessellator = Tessellator.instance;
double d7 = (double)icon.getMinU();
double d8 = (double)icon.getMinV();
double d9 = (double)icon.getInterpolatedU(par14);
double d10 = (double)icon.getInterpolatedV(4.0D);
tessellator.setColorOpaque_F(par13, par13, par13);
tessellator.addVertexWithUV(par3, par5, par9, d9, d8);
tessellator.addVertexWithUV(par1, par5, par9, d7, d8);
tessellator.addVertexWithUV(par1, par7, par11, d7, d10);
tessellator.addVertexWithUV(par3, par7, par11, d9, d10);
}
示例4: renderPositiveXFace
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Renders the face on the positive x side with optional texture offsets.
* @param xOffset
* The offset on the x-axis.
* @param yOffset
* The offset on the y-axis.
* @param zOffset
* The offset on the z-axis.
* @param height
* The faces height.
* @param depth
* The faces depth.
* @param uOffset
* The texture offset on the u-axis.
* @param vOffset
* The texture offset on the v-axis.
* @param uMaxOffset
* The max texture offset on the u-axis.
* @param vMaxOffset
* The max texture offset on the v-axis.
* @param icon
* The faces texture.
* @param scale
* The value to scale the offsets with.
*/
public static void renderPositiveXFace(double xOffset, double yOffset, double zOffset, double height, double depth, double uOffset, double vOffset, double uMaxOffset, double vMaxOffset, Icon icon, double scale)
{
tr.setNormal(1f, 0f, 0f);
double x = xBaseCoord + xOffset * scale;
// bottom right
double zBr = zBaseCoord + zOffset * scale;
double yBr = yBaseCoord + yOffset * scale;
// top right
double zTr = zBaseCoord + zOffset * scale;
double yTr = yBaseCoord + (yOffset + height) * scale;
// top left
double zTl = zBaseCoord + (zOffset + depth) * scale;
double yTl = yBaseCoord + (yOffset + height) * scale;
// bottom left
double zBl = zBaseCoord + (zOffset + depth) * scale;
double yBl = yBaseCoord + yOffset * scale;
double minU = (uOffset > 0 && uOffset < 16) ? icon.getMinU() + (icon.getInterpolatedU(uOffset) - icon.getMinU()) : icon.getMinU();
double maxU = (uMaxOffset > 0 && uMaxOffset < 16) ? icon.getMaxU() - (icon.getMaxU() - icon.getInterpolatedU(uMaxOffset)) : icon.getMaxU();
double minV = (vOffset > 0 && vOffset < 16) ? icon.getMinV() + (icon.getInterpolatedV(vOffset) - icon.getMinV()) : icon.getMinV();
double maxV = (vMaxOffset > 0 && vMaxOffset < 16) ? icon.getMaxV() - (icon.getMaxV() - icon.getInterpolatedV(vMaxOffset)) : icon.getMaxV();
// bottom right
tr.addVertexWithUV(x, yBr, zBr, maxU, maxV);
// top right
tr.addVertexWithUV(x, yTr, zTr, maxU, minV);
// top left
tr.addVertexWithUV(x, yTl, zTl, minU, minV);
// bottom left
tr.addVertexWithUV(x, yBl, zBl, minU, maxV);
}
示例5: renderNegativeXFace
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Renders the face on the negative x side with optional texture offsets.
* @param xOffset
* The offset on the x-axis.
* @param yOffset
* The offset on the y-axis.
* @param zOffset
* The offset on the z-axis.
* @param height
* The faces height.
* @param depth
* The faces depth.
* @param uOffset
* The texture offset on the u-axis.
* @param vOffset
* The texture offset on the v-axis.
* @param uMaxOffset
* The max texture offset on the u-axis.
* @param vMaxOffset
* The max texture offset on the v-axis.
* @param icon
* The faces texture.
* @param scale
* The value to scale the offsets with.
*/
public static void renderNegativeXFace(double xOffset, double yOffset, double zOffset, double height, double depth, double uOffset, double vOffset, double uMaxOffset, double vMaxOffset, Icon icon, double scale)
{
tr.setNormal(-1f, 0f, 0f);
double x = xBaseCoord + xOffset * scale;
// bottom left
double zBl = zBaseCoord + zOffset * scale;
double yBl = yBaseCoord + yOffset * scale;
// bottom right
double zBr = zBaseCoord + (zOffset + depth) * scale;
double yBr = yBaseCoord + yOffset * scale;
// top right
double zTr = zBaseCoord + (zOffset + depth) * scale;
double yTr = yBaseCoord + (yOffset + height) * scale;
// top left
double zTl = zBaseCoord + zOffset * scale;
double yTl = yBaseCoord + (yOffset + height) * scale;
double minU = (uOffset > 0 && uOffset < 16) ? icon.getMinU() + (icon.getInterpolatedU(uOffset) - icon.getMinU()) : icon.getMinU();
double maxU = (uMaxOffset > 0 && uMaxOffset < 16) ? icon.getMaxU() - (icon.getMaxU() - icon.getInterpolatedU(uMaxOffset)) : icon.getMaxU();
double minV = (vOffset > 0 && vOffset < 16) ? icon.getMinV() + (icon.getInterpolatedV(vOffset) - icon.getMinV()) : icon.getMinV();
double maxV = (vMaxOffset > 0 && vMaxOffset < 16) ? icon.getMaxV() - (icon.getMaxV() - icon.getInterpolatedV(vMaxOffset)) : icon.getMaxV();
// bottom left
tr.addVertexWithUV(x, yBl, zBl, minU, maxV);
// bottom right
tr.addVertexWithUV(x, yBr, zBr, maxU, maxV);
// top right
tr.addVertexWithUV(x, yTr, zTr, maxU, minV);
// top left
tr.addVertexWithUV(x, yTl, zTl, minU, minV);
}
示例6: renderPositiveYFace
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Renders the face on the positive y side with optional texture offsets.
* @param xOffset
* The offset on the x-axis.
* @param yOffset
* The offset on the y-axis.
* @param zOffset
* The offset on the z-axis.
* @param width
* The faces width.
* @param depth
* The faces depth.
* @param uOffset
* The texture offset on the u-axis.
* @param vOffset
* The texture offset on the v-axis.
* @param uMaxOffset
* The max texture offset on the u-axis.
* @param vMaxOffset
* The max texture offset on the v-axis.
* @param icon
* The faces texture.
* @param scale
* The value to scale the offsets with.
*/
public static void renderPositiveYFace(double xOffset, double yOffset, double zOffset, double width, double depth, double uOffset, double vOffset, double uMaxOffset, double vMaxOffset, Icon icon, double scale)
{
tr.setNormal(0f, 1f, 0f);
double y = yBaseCoord + yOffset * scale;
// bottom right
double xBr = xBaseCoord + xOffset * scale;
double zBr = zBaseCoord + zOffset * scale;
// top right
double xTr = xBaseCoord + xOffset * scale;
double zTr = zBaseCoord + (zOffset + depth) * scale;
// top left
double xTl = xBaseCoord + (xOffset + width) * scale;
double zTl = zBaseCoord + (zOffset + depth) * scale;
// bottom left
double xBl = xBaseCoord + (xOffset + width) * scale;
double zBl = zBaseCoord + zOffset * scale;
double minU = (uOffset > 0 && uOffset < 16) ? icon.getMinU() + (icon.getInterpolatedU(uOffset) - icon.getMinU()) : icon.getMinU();
double maxU = (uMaxOffset > 0 && uMaxOffset < 16) ? icon.getMaxU() - (icon.getMaxU() - icon.getInterpolatedU(uMaxOffset)) : icon.getMaxU();
double minV = (vOffset > 0 && vOffset < 16) ? icon.getMinV() + (icon.getInterpolatedV(vOffset) - icon.getMinV()) : icon.getMinV();
double maxV = (vMaxOffset > 0 && vMaxOffset < 16) ? icon.getMaxV() - (icon.getMaxV() - icon.getInterpolatedV(vMaxOffset)) : icon.getMaxV();
// bottom right
tr.addVertexWithUV(xBr, y, zBr, maxU, maxV);
// top right
tr.addVertexWithUV(xTr, y, zTr, maxU, minV);
// top left
tr.addVertexWithUV(xTl, y, zTl, minU, minV);
// bottom left
tr.addVertexWithUV(xBl, y, zBl, minU, maxV);
}
示例7: renderNegativeYFace
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Renders the face on the negative y side with optional texture offsets.
* @param xOffset
* The offset on the x-axis.
* @param yOffset
* The offset on the y-axis.
* @param zOffset
* The offset on the z-axis.
* @param width
* The faces width.
* @param depth
* The faces depth.
* @param uOffset
* The texture offset on the u-axis.
* @param vOffset
* The texture offset on the v-axis.
* @param uMaxOffset
* The max texture offset on the u-axis.
* @param vMaxOffset
* The max texture offset on the v-axis.
* @param icon
* The faces texture.
* @param scale
* The value to scale the offsets with.
*/
public static void renderNegativeYFace(double xOffset, double yOffset, double zOffset, double width, double depth, double uOffset, double vOffset, double uMaxOffset, double vMaxOffset, Icon icon, double scale)
{
tr.setNormal(0f, -1f, 0f);
double y = yBaseCoord + yOffset * scale;
// top right
double xTr = xBaseCoord + xOffset * scale;
double zTr = zBaseCoord + zOffset * scale;
// top left
double xTl = xBaseCoord + (xOffset + width) * scale;
double zTl = zBaseCoord + zOffset * scale;
// bottom left
double xBl = xBaseCoord + (xOffset + width) * scale;
double zBl = zBaseCoord + (zOffset + depth) * scale;
// bottom right
double xBr = xBaseCoord + xOffset * scale;
double zBr = zBaseCoord + (zOffset + depth) * scale;
double minU = (uOffset > 0 && uOffset < 16) ? icon.getMinU() + (icon.getInterpolatedU(uOffset) - icon.getMinU()) : icon.getMinU();
double maxU = (uMaxOffset > 0 && uMaxOffset < 16) ? icon.getMaxU() - (icon.getMaxU() - icon.getInterpolatedU(uMaxOffset)) : icon.getMaxU();
double minV = (vOffset > 0 && vOffset < 16) ? icon.getMinV() + (icon.getInterpolatedV(vOffset) - icon.getMinV()) : icon.getMinV();
double maxV = (vMaxOffset > 0 && vMaxOffset < 16) ? icon.getMaxV() - (icon.getMaxV() - icon.getInterpolatedV(vMaxOffset)) : icon.getMaxV();
// top right
tr.addVertexWithUV(xTr, y, zTr, maxU, minV);
// top left
tr.addVertexWithUV(xTl, y, zTl, minU, minV);
// bottom left
tr.addVertexWithUV(xBl, y, zBl, minU, maxV);
// bottom right
tr.addVertexWithUV(xBr, y, zBr, maxU, maxV);
}
示例8: renderPositiveZFace
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Renders the face on the positive z side with optional texture offsets.
* @param xOffset
* The offset on the x-axis.
* @param yOffset
* The offset on the y-axis.
* @param zOffset
* The offset on the z-axis.
* @param width
* The faces width.
* @param height
* The faces height.
* @param uOffset
* The texture offset on the u-axis.
* @param vOffset
* The texture offset on the v-axis.
* @param uMaxOffset
* The max texture offset on the u-axis.
* @param vMaxOffset
* The max texture offset on the v-axis.
* @param icon
* The faces texture.
* @param scale
* The value to scale the offsets with.
*/
public static void renderPositiveZFace(double xOffset, double yOffset, double zOffset, double width, double height, double uOffset, double vOffset, double uMaxOffset, double vMaxOffset, Icon icon, double scale)
{
tr.setNormal(0f, 0f, 1f);
double z = zBaseCoord + zOffset * scale;
// bottom left
double xBl = xBaseCoord + xOffset * scale;
double yBl = yBaseCoord + yOffset * scale;
// bottom right
double xBr = xBaseCoord + (xOffset + width) * scale;
double yBr = yBaseCoord + yOffset * scale;
// top right
double xTr = xBaseCoord + (xOffset + width) * scale;
double yTr = yBaseCoord + (yOffset + height) * scale;
// top left
double xTl = xBaseCoord + xOffset * scale;
double yTl = yBaseCoord + (yOffset + height) * scale;
double minU = (uOffset > 0 && uOffset < 16) ? icon.getMinU() + (icon.getInterpolatedU(uOffset) - icon.getMinU()) : icon.getMinU();
double maxU = (uMaxOffset > 0 && uMaxOffset < 16) ? icon.getMaxU() - (icon.getMaxU() - icon.getInterpolatedU(uMaxOffset)) : icon.getMaxU();
double minV = (vOffset > 0 && vOffset < 16) ? icon.getMinV() + (icon.getInterpolatedV(vOffset) - icon.getMinV()) : icon.getMinV();
double maxV = (vMaxOffset > 0 && vMaxOffset < 16) ? icon.getMaxV() - (icon.getMaxV() - icon.getInterpolatedV(vMaxOffset)) : icon.getMaxV();
// bottom left
tr.addVertexWithUV(xBl, yBl, z, minU, maxV);
// bottom right
tr.addVertexWithUV(xBr, yBr, z, maxU, maxV);
// top right
tr.addVertexWithUV(xTr, yTr, z, maxU, minV);
// top left
tr.addVertexWithUV(xTl, yTl, z, minU, minV);
}
示例9: renderNegativeZFace
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Renders the face on the negative z side with optional texture offsets.
* @param xOffset
* The offset on the x-axis.
* @param yOffset
* The offset on the y-axis.
* @param zOffset
* The offset on the z-axis.
* @param width
* The faces width.
* @param height
* The faces height.
* @param uOffset
* The texture offset on the u-axis.
* @param vOffset
* The texture offset on the v-axis.
* @param uMaxOffset
* The max texture offset on the u-axis.
* @param vMaxOffset
* The max texture offset on the v-axis.
* @param icon
* The faces texture.
* @param scale
* The value to scale the offsets with.
*/
public static void renderNegativeZFace(double xOffset, double yOffset, double zOffset, double width, double height, double uOffset, double vOffset, double uMaxOffset, double vMaxOffset, Icon icon, double scale)
{
tr.setNormal(0f, 0f, -1f);
double z = zBaseCoord + zOffset * scale;
// bottom right
double xBr = xBaseCoord + xOffset * scale;
double yBr = yBaseCoord + yOffset * scale;
// top right
double xTr = xBaseCoord + xOffset * scale;
double yTr = yBaseCoord + (yOffset + height) * scale;
// top left
double xTl = xBaseCoord + (xOffset + width) * scale;
double yTl = yBaseCoord + (yOffset + height) * scale;
// bottom left
double xBl = xBaseCoord + (xOffset + width) * scale;
double yBl = yBaseCoord + yOffset * scale;
double minU = (uOffset > 0 && uOffset < 16) ? icon.getMinU() + (icon.getInterpolatedU(uOffset) - icon.getMinU()) : icon.getMinU();
double maxU = (uMaxOffset > 0 && uMaxOffset < 16) ? icon.getMaxU() - (icon.getMaxU() - icon.getInterpolatedU(uMaxOffset)) : icon.getMaxU();
double minV = (vOffset > 0 && vOffset < 16) ? icon.getMinV() + (icon.getInterpolatedV(vOffset) - icon.getMinV()) : icon.getMinV();
double maxV = (vMaxOffset > 0 && vMaxOffset < 16) ? icon.getMaxV() - (icon.getMaxV() - icon.getInterpolatedV(vMaxOffset)) : icon.getMaxV();
// bottom right
tr.addVertexWithUV(xBr, yBr, z, maxU, maxV);
// top right
tr.addVertexWithUV(xTr, yTr, z, maxU, minV);
// top left
tr.addVertexWithUV(xTl, yTl, z, minU, minV);
// bottom left
tr.addVertexWithUV(xBl, yBl, z, minU, maxV);
}
示例10: renderBlockBrewingStand
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Render BlockBrewingStand
*/
public boolean renderBlockBrewingStand(BlockBrewingStand par1BlockBrewingStand, int par2, int par3, int par4)
{
this.setRenderBounds(0.4375D, 0.0D, 0.4375D, 0.5625D, 0.875D, 0.5625D);
this.renderStandardBlock(par1BlockBrewingStand, par2, par3, par4);
this.setOverrideBlockTexture(par1BlockBrewingStand.getBrewingStandIcon());
this.renderAllFaces = true;
this.setRenderBounds(0.5625D, 0.0D, 0.3125D, 0.9375D, 0.125D, 0.6875D);
this.renderStandardBlock(par1BlockBrewingStand, par2, par3, par4);
this.setRenderBounds(0.125D, 0.0D, 0.0625D, 0.5D, 0.125D, 0.4375D);
this.renderStandardBlock(par1BlockBrewingStand, par2, par3, par4);
this.setRenderBounds(0.125D, 0.0D, 0.5625D, 0.5D, 0.125D, 0.9375D);
this.renderStandardBlock(par1BlockBrewingStand, par2, par3, par4);
this.renderAllFaces = false;
this.clearOverrideBlockTexture();
Tessellator tessellator = Tessellator.instance;
tessellator.setBrightness(par1BlockBrewingStand.getMixedBrightnessForBlock(this.blockAccess, par2, par3, par4));
float f = 1.0F;
int l = par1BlockBrewingStand.colorMultiplier(this.blockAccess, par2, par3, par4);
float f1 = (float)(l >> 16 & 255) / 255.0F;
float f2 = (float)(l >> 8 & 255) / 255.0F;
float f3 = (float)(l & 255) / 255.0F;
if (EntityRenderer.anaglyphEnable)
{
float f4 = (f1 * 30.0F + f2 * 59.0F + f3 * 11.0F) / 100.0F;
float f5 = (f1 * 30.0F + f2 * 70.0F) / 100.0F;
float f6 = (f1 * 30.0F + f3 * 70.0F) / 100.0F;
f1 = f4;
f2 = f5;
f3 = f6;
}
tessellator.setColorOpaque_F(f * f1, f * f2, f * f3);
Icon icon = this.getBlockIconFromSideAndMetadata(par1BlockBrewingStand, 0, 0);
if (this.hasOverrideBlockTexture())
{
icon = this.overrideBlockTexture;
}
double d0 = (double)icon.getMinV();
double d1 = (double)icon.getMaxV();
int i1 = this.blockAccess.getBlockMetadata(par2, par3, par4);
for (int j1 = 0; j1 < 3; ++j1)
{
double d2 = (double)j1 * Math.PI * 2.0D / 3.0D + (Math.PI / 2D);
double d3 = (double)icon.getInterpolatedU(8.0D);
double d4 = (double)icon.getMaxU();
if ((i1 & 1 << j1) != 0)
{
d4 = (double)icon.getMinU();
}
double d5 = (double)par2 + 0.5D;
double d6 = (double)par2 + 0.5D + Math.sin(d2) * 8.0D / 16.0D;
double d7 = (double)par4 + 0.5D;
double d8 = (double)par4 + 0.5D + Math.cos(d2) * 8.0D / 16.0D;
tessellator.addVertexWithUV(d5, (double)(par3 + 1), d7, d3, d0);
tessellator.addVertexWithUV(d5, (double)(par3 + 0), d7, d3, d1);
tessellator.addVertexWithUV(d6, (double)(par3 + 0), d8, d4, d1);
tessellator.addVertexWithUV(d6, (double)(par3 + 1), d8, d4, d0);
tessellator.addVertexWithUV(d6, (double)(par3 + 1), d8, d4, d0);
tessellator.addVertexWithUV(d6, (double)(par3 + 0), d8, d4, d1);
tessellator.addVertexWithUV(d5, (double)(par3 + 0), d7, d3, d1);
tessellator.addVertexWithUV(d5, (double)(par3 + 1), d7, d3, d0);
}
par1BlockBrewingStand.setBlockBoundsForItemRender();
return true;
}
示例11: renderTorchAtAngle
import net.minecraft.util.Icon; //導入方法依賴的package包/類
/**
* Renders a torch at the given coordinates, with the base slanting at the given delta
*/
public void renderTorchAtAngle(Block par1Block, double par2, double par4, double par6, double par8, double par10, int par12)
{
Tessellator tessellator = Tessellator.instance;
Icon icon = this.getBlockIconFromSideAndMetadata(par1Block, 0, par12);
if (this.hasOverrideBlockTexture())
{
icon = this.overrideBlockTexture;
}
double d5 = (double)icon.getMinU();
double d6 = (double)icon.getMinV();
double d7 = (double)icon.getMaxU();
double d8 = (double)icon.getMaxV();
double d9 = (double)icon.getInterpolatedU(7.0D);
double d10 = (double)icon.getInterpolatedV(6.0D);
double d11 = (double)icon.getInterpolatedU(9.0D);
double d12 = (double)icon.getInterpolatedV(8.0D);
double d13 = (double)icon.getInterpolatedU(7.0D);
double d14 = (double)icon.getInterpolatedV(13.0D);
double d15 = (double)icon.getInterpolatedU(9.0D);
double d16 = (double)icon.getInterpolatedV(15.0D);
par2 += 0.5D;
par6 += 0.5D;
double d17 = par2 - 0.5D;
double d18 = par2 + 0.5D;
double d19 = par6 - 0.5D;
double d20 = par6 + 0.5D;
double d21 = 0.0625D;
double d22 = 0.625D;
tessellator.addVertexWithUV(par2 + par8 * (1.0D - d22) - d21, par4 + d22, par6 + par10 * (1.0D - d22) - d21, d9, d10);
tessellator.addVertexWithUV(par2 + par8 * (1.0D - d22) - d21, par4 + d22, par6 + par10 * (1.0D - d22) + d21, d9, d12);
tessellator.addVertexWithUV(par2 + par8 * (1.0D - d22) + d21, par4 + d22, par6 + par10 * (1.0D - d22) + d21, d11, d12);
tessellator.addVertexWithUV(par2 + par8 * (1.0D - d22) + d21, par4 + d22, par6 + par10 * (1.0D - d22) - d21, d11, d10);
tessellator.addVertexWithUV(par2 + d21 + par8, par4, par6 - d21 + par10, d15, d14);
tessellator.addVertexWithUV(par2 + d21 + par8, par4, par6 + d21 + par10, d15, d16);
tessellator.addVertexWithUV(par2 - d21 + par8, par4, par6 + d21 + par10, d13, d16);
tessellator.addVertexWithUV(par2 - d21 + par8, par4, par6 - d21 + par10, d13, d14);
tessellator.addVertexWithUV(par2 - d21, par4 + 1.0D, d19, d5, d6);
tessellator.addVertexWithUV(par2 - d21 + par8, par4 + 0.0D, d19 + par10, d5, d8);
tessellator.addVertexWithUV(par2 - d21 + par8, par4 + 0.0D, d20 + par10, d7, d8);
tessellator.addVertexWithUV(par2 - d21, par4 + 1.0D, d20, d7, d6);
tessellator.addVertexWithUV(par2 + d21, par4 + 1.0D, d20, d5, d6);
tessellator.addVertexWithUV(par2 + par8 + d21, par4 + 0.0D, d20 + par10, d5, d8);
tessellator.addVertexWithUV(par2 + par8 + d21, par4 + 0.0D, d19 + par10, d7, d8);
tessellator.addVertexWithUV(par2 + d21, par4 + 1.0D, d19, d7, d6);
tessellator.addVertexWithUV(d17, par4 + 1.0D, par6 + d21, d5, d6);
tessellator.addVertexWithUV(d17 + par8, par4 + 0.0D, par6 + d21 + par10, d5, d8);
tessellator.addVertexWithUV(d18 + par8, par4 + 0.0D, par6 + d21 + par10, d7, d8);
tessellator.addVertexWithUV(d18, par4 + 1.0D, par6 + d21, d7, d6);
tessellator.addVertexWithUV(d18, par4 + 1.0D, par6 - d21, d5, d6);
tessellator.addVertexWithUV(d18 + par8, par4 + 0.0D, par6 - d21 + par10, d5, d8);
tessellator.addVertexWithUV(d17 + par8, par4 + 0.0D, par6 - d21 + par10, d7, d8);
tessellator.addVertexWithUV(d17, par4 + 1.0D, par6 - d21, d7, d6);
}