Naming improvements
Clarified naming in DDLock and associated methods. Still not quite done.
This commit is contained in:
@@ -28,60 +28,32 @@ public class PrivatePocketRender implements ISimpleBlockRenderingHandler
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer)
|
||||
{
|
||||
float par5 = .5F;
|
||||
float par6 = .5F;
|
||||
float par7 = .5F;
|
||||
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
boolean flag = false;
|
||||
float f3 = 0.5F;
|
||||
float f4 = 1.0F;
|
||||
float f5 = 0.8F;
|
||||
float f6 = 0.6F;
|
||||
float f7 = f4 * par5;
|
||||
float f8 = f4 * par6;
|
||||
float f9 = f4 * par7;
|
||||
float f10 = f3;
|
||||
float f11 = f5;
|
||||
float f12 = f6;
|
||||
float f13 = f3;
|
||||
float f14 = f5;
|
||||
float f15 = f6;
|
||||
float f16 = f3;
|
||||
float f17 = f5;
|
||||
float f18 = f6;
|
||||
|
||||
if (block != Block.grass)
|
||||
{
|
||||
f10 = f3 * par5;
|
||||
f11 = f5 * par5;
|
||||
f12 = f6 * par5;
|
||||
f13 = f3 * par6;
|
||||
f14 = f5 * par6;
|
||||
f15 = f6 * par6;
|
||||
f16 = f3 * par7;
|
||||
f17 = f5 * par7;
|
||||
f18 = f6 * par7;
|
||||
}
|
||||
Icon icon = renderer.getBlockIcon(block, world, x, y, z, 2);
|
||||
|
||||
|
||||
tessellator.setColorOpaque_F(.89F, .89F, .89F);
|
||||
|
||||
tessellator.setColorOpaque_F(1F, 1F, 1F);
|
||||
|
||||
if (renderer.renderAllFaces || block.shouldSideBeRendered(world, x, y - 1, z, 0))
|
||||
{
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, renderer.getBlockIcon(block, world, x, y, z, 0));
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, icon);
|
||||
flag = true;
|
||||
}
|
||||
|
||||
if (renderer.renderAllFaces || block.shouldSideBeRendered(world, x, y + 1, z, 1))
|
||||
{
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, renderer.getBlockIcon(block, world, x, y, z, 1));
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, icon);
|
||||
flag = true;
|
||||
}
|
||||
|
||||
Icon icon;
|
||||
|
||||
|
||||
if (renderer.renderAllFaces || block.shouldSideBeRendered(world, x, y, z - 1, 2))
|
||||
{
|
||||
icon = renderer.getBlockIcon(block, world, x, y, z, 2);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, icon);
|
||||
|
||||
|
||||
@@ -90,7 +62,6 @@ public class PrivatePocketRender implements ISimpleBlockRenderingHandler
|
||||
|
||||
if (renderer.renderAllFaces || block.shouldSideBeRendered(world, x, y, z + 1, 3))
|
||||
{
|
||||
icon = renderer.getBlockIcon(block, world, x, y, z, 3);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, icon);
|
||||
|
||||
|
||||
@@ -100,7 +71,6 @@ public class PrivatePocketRender implements ISimpleBlockRenderingHandler
|
||||
|
||||
if (renderer.renderAllFaces || block.shouldSideBeRendered(world, x - 1, y, z, 4))
|
||||
{
|
||||
icon = renderer.getBlockIcon(block, world, x, y, z, 4);
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, icon);
|
||||
|
||||
|
||||
@@ -110,7 +80,6 @@ public class PrivatePocketRender implements ISimpleBlockRenderingHandler
|
||||
|
||||
if (renderer.renderAllFaces || block.shouldSideBeRendered(world, x + 1, y, z, 5))
|
||||
{
|
||||
icon = renderer.getBlockIcon(block, world, x, y, z, 5);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, icon);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user