Moved to RebornCore

This commit is contained in:
modmuss50 2015-11-08 12:15:45 +00:00
parent 50a830a101
commit 8abf6e5282
313 changed files with 3987 additions and 16508 deletions

View file

@ -11,8 +11,8 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import reborncore.client.texture.ConnectedTexture;
import techreborn.blocks.BlockMachineBase;
import techreborn.client.texture.ConnectedTexture;
import techreborn.client.texture.LesuConnectedTextureGenerator;
import techreborn.config.ConfigTechReborn;
import techreborn.tiles.lesu.TileLesuStorage;
@ -30,8 +30,8 @@ public class BlockLesuStorage extends BlockMachineBase {
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.icons = new IIcon[1][16];
// up down left right
if(!ConfigTechReborn.useConnectedTextures){
// up down left right
if (!ConfigTechReborn.useConnectedTextures) {
for (int j = 0; j < 15; j++) {
icons[0][j] = iconRegister.registerIcon("techreborn:" + "machine/lesu_block");
}
@ -39,22 +39,22 @@ public class BlockLesuStorage extends BlockMachineBase {
}
int i = 0;
icons[i][0] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, true, true), iconRegister, 0, i);
icons[i][1] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, true, true), iconRegister, 1, i);
icons[i][2] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, true, true), iconRegister, 2, i);
icons[i][3] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, true, false), iconRegister, 3, i);
icons[i][4] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, false, true), iconRegister, 4, i);
icons[i][5] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, false, false), iconRegister, 5, i);
icons[i][6] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, true, true), iconRegister, 6, i);
icons[i][7] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, false, true), iconRegister, 7, i);
icons[i][8] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, true, false), iconRegister, 8, i);
icons[i][9] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, false, true), iconRegister, 9, i);
icons[i][10] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, true, false), iconRegister, 10, i);
icons[i][11] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, false, false), iconRegister, 11, i);
icons[i][12] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, false, false), iconRegister, 12, i);
icons[i][13] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, false, true), iconRegister, 13, i);
icons[i][14] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, true, false), iconRegister, 14, i);
icons[i][15] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, false, false), iconRegister, 15, i);
icons[i][0] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, true, true), iconRegister, 0, i);
icons[i][1] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, true, true), iconRegister, 1, i);
icons[i][2] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, true, true), iconRegister, 2, i);
icons[i][3] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, true, false), iconRegister, 3, i);
icons[i][4] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, false, true), iconRegister, 4, i);
icons[i][5] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, true, false, false), iconRegister, 5, i);
icons[i][6] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, true, true), iconRegister, 6, i);
icons[i][7] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, false, true), iconRegister, 7, i);
icons[i][8] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, true, false), iconRegister, 8, i);
icons[i][9] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, false, true), iconRegister, 9, i);
icons[i][10] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, true, false), iconRegister, 10, i);
icons[i][11] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, true, false, false), iconRegister, 11, i);
icons[i][12] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(true, false, false, false), iconRegister, 12, i);
icons[i][13] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, false, true), iconRegister, 13, i);
icons[i][14] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, true, false), iconRegister, 14, i);
icons[i][15] = LesuConnectedTextureGenerator.genIcon(new ConnectedTexture(false, false, false, false), iconRegister, 15, i);
}
@Override
@ -69,8 +69,6 @@ public class BlockLesuStorage extends BlockMachineBase {
}
@Override
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack itemstack) {
super.onBlockPlacedBy(world, x, y, z, player, itemstack);
@ -97,501 +95,301 @@ public class BlockLesuStorage extends BlockMachineBase {
/**
* This is taken from https://github.com/SlimeKnights/TinkersConstruct/blob/a7405a3d10318bb5c486ec75fb62897a8149d1a6/src/main/java/tconstruct/smeltery/blocks/GlassBlockConnected.java
*/
public IIcon getConnectedBlockTexture (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5, IIcon[] icons)
{
public IIcon getConnectedBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5, IIcon[] icons) {
boolean isOpenUp = false, isOpenDown = false, isOpenLeft = false, isOpenRight = false;
switch (par5)
{
switch (par5) {
case 0:
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4))) {
isOpenDown = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4))) {
isOpenUp = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1))) {
isOpenLeft = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1))) {
isOpenRight = true;
}
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight)
{
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight) {
return icons[15];
}
else if (isOpenUp && isOpenDown && isOpenLeft)
{
} else if (isOpenUp && isOpenDown && isOpenLeft) {
return icons[11];
}
else if (isOpenUp && isOpenDown && isOpenRight)
{
} else if (isOpenUp && isOpenDown && isOpenRight) {
return icons[12];
}
else if (isOpenUp && isOpenLeft && isOpenRight)
{
} else if (isOpenUp && isOpenLeft && isOpenRight) {
return icons[13];
}
else if (isOpenDown && isOpenLeft && isOpenRight)
{
} else if (isOpenDown && isOpenLeft && isOpenRight) {
return icons[14];
}
else if (isOpenDown && isOpenUp)
{
} else if (isOpenDown && isOpenUp) {
return icons[5];
}
else if (isOpenLeft && isOpenRight)
{
} else if (isOpenLeft && isOpenRight) {
return icons[6];
}
else if (isOpenDown && isOpenLeft)
{
} else if (isOpenDown && isOpenLeft) {
return icons[8];
}
else if (isOpenDown && isOpenRight)
{
} else if (isOpenDown && isOpenRight) {
return icons[10];
}
else if (isOpenUp && isOpenLeft)
{
} else if (isOpenUp && isOpenLeft) {
return icons[7];
}
else if (isOpenUp && isOpenRight)
{
} else if (isOpenUp && isOpenRight) {
return icons[9];
}
else if (isOpenDown)
{
} else if (isOpenDown) {
return icons[3];
}
else if (isOpenUp)
{
} else if (isOpenUp) {
return icons[4];
}
else if (isOpenLeft)
{
} else if (isOpenLeft) {
return icons[2];
}
else if (isOpenRight)
{
} else if (isOpenRight) {
return icons[1];
}
break;
case 1:
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4))) {
isOpenDown = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4))) {
isOpenUp = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1))) {
isOpenLeft = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1))) {
isOpenRight = true;
}
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight)
{
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight) {
return icons[15];
}
else if (isOpenUp && isOpenDown && isOpenLeft)
{
} else if (isOpenUp && isOpenDown && isOpenLeft) {
return icons[11];
}
else if (isOpenUp && isOpenDown && isOpenRight)
{
} else if (isOpenUp && isOpenDown && isOpenRight) {
return icons[12];
}
else if (isOpenUp && isOpenLeft && isOpenRight)
{
} else if (isOpenUp && isOpenLeft && isOpenRight) {
return icons[13];
}
else if (isOpenDown && isOpenLeft && isOpenRight)
{
} else if (isOpenDown && isOpenLeft && isOpenRight) {
return icons[14];
}
else if (isOpenDown && isOpenUp)
{
} else if (isOpenDown && isOpenUp) {
return icons[5];
}
else if (isOpenLeft && isOpenRight)
{
} else if (isOpenLeft && isOpenRight) {
return icons[6];
}
else if (isOpenDown && isOpenLeft)
{
} else if (isOpenDown && isOpenLeft) {
return icons[8];
}
else if (isOpenDown && isOpenRight)
{
} else if (isOpenDown && isOpenRight) {
return icons[10];
}
else if (isOpenUp && isOpenLeft)
{
} else if (isOpenUp && isOpenLeft) {
return icons[7];
}
else if (isOpenUp && isOpenRight)
{
} else if (isOpenUp && isOpenRight) {
return icons[9];
}
else if (isOpenDown)
{
} else if (isOpenDown) {
return icons[3];
}
else if (isOpenUp)
{
} else if (isOpenUp) {
return icons[4];
}
else if (isOpenLeft)
{
} else if (isOpenLeft) {
return icons[2];
}
else if (isOpenRight)
{
} else if (isOpenRight) {
return icons[1];
}
break;
case 2:
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4))) {
isOpenDown = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4))) {
isOpenUp = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4))) {
isOpenLeft = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4))) {
isOpenRight = true;
}
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight)
{
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight) {
return icons[15];
}
else if (isOpenUp && isOpenDown && isOpenLeft)
{
} else if (isOpenUp && isOpenDown && isOpenLeft) {
return icons[13];
}
else if (isOpenUp && isOpenDown && isOpenRight)
{
} else if (isOpenUp && isOpenDown && isOpenRight) {
return icons[14];
}
else if (isOpenUp && isOpenLeft && isOpenRight)
{
} else if (isOpenUp && isOpenLeft && isOpenRight) {
return icons[11];
}
else if (isOpenDown && isOpenLeft && isOpenRight)
{
} else if (isOpenDown && isOpenLeft && isOpenRight) {
return icons[12];
}
else if (isOpenDown && isOpenUp)
{
} else if (isOpenDown && isOpenUp) {
return icons[6];
}
else if (isOpenLeft && isOpenRight)
{
} else if (isOpenLeft && isOpenRight) {
return icons[5];
}
else if (isOpenDown && isOpenLeft)
{
} else if (isOpenDown && isOpenLeft) {
return icons[9];
}
else if (isOpenDown && isOpenRight)
{
} else if (isOpenDown && isOpenRight) {
return icons[10];
}
else if (isOpenUp && isOpenLeft)
{
} else if (isOpenUp && isOpenLeft) {
return icons[7];
}
else if (isOpenUp && isOpenRight)
{
} else if (isOpenUp && isOpenRight) {
return icons[8];
}
else if (isOpenDown)
{
} else if (isOpenDown) {
return icons[1];
}
else if (isOpenUp)
{
} else if (isOpenUp) {
return icons[2];
}
else if (isOpenLeft)
{
} else if (isOpenLeft) {
return icons[4];
}
else if (isOpenRight)
{
} else if (isOpenRight) {
return icons[3];
}
break;
case 3:
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4))) {
isOpenDown = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4))) {
isOpenUp = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 - 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 - 1, par3, par4))) {
isOpenLeft = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2 + 1, par3, par4), par1IBlockAccess.getBlockMetadata(par2 + 1, par3, par4))) {
isOpenRight = true;
}
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight)
{
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight) {
return icons[15];
}
else if (isOpenUp && isOpenDown && isOpenLeft)
{
} else if (isOpenUp && isOpenDown && isOpenLeft) {
return icons[14];
}
else if (isOpenUp && isOpenDown && isOpenRight)
{
} else if (isOpenUp && isOpenDown && isOpenRight) {
return icons[13];
}
else if (isOpenUp && isOpenLeft && isOpenRight)
{
} else if (isOpenUp && isOpenLeft && isOpenRight) {
return icons[11];
}
else if (isOpenDown && isOpenLeft && isOpenRight)
{
} else if (isOpenDown && isOpenLeft && isOpenRight) {
return icons[12];
}
else if (isOpenDown && isOpenUp)
{
} else if (isOpenDown && isOpenUp) {
return icons[6];
}
else if (isOpenLeft && isOpenRight)
{
} else if (isOpenLeft && isOpenRight) {
return icons[5];
}
else if (isOpenDown && isOpenLeft)
{
} else if (isOpenDown && isOpenLeft) {
return icons[10];
}
else if (isOpenDown && isOpenRight)
{
} else if (isOpenDown && isOpenRight) {
return icons[9];
}
else if (isOpenUp && isOpenLeft)
{
} else if (isOpenUp && isOpenLeft) {
return icons[8];
}
else if (isOpenUp && isOpenRight)
{
} else if (isOpenUp && isOpenRight) {
return icons[7];
}
else if (isOpenDown)
{
} else if (isOpenDown) {
return icons[1];
}
else if (isOpenUp)
{
} else if (isOpenUp) {
return icons[2];
}
else if (isOpenLeft)
{
} else if (isOpenLeft) {
return icons[3];
}
else if (isOpenRight)
{
} else if (isOpenRight) {
return icons[4];
}
break;
case 4:
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4))) {
isOpenDown = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4))) {
isOpenUp = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1))) {
isOpenLeft = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1))) {
isOpenRight = true;
}
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight)
{
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight) {
return icons[15];
}
else if (isOpenUp && isOpenDown && isOpenLeft)
{
} else if (isOpenUp && isOpenDown && isOpenLeft) {
return icons[14];
}
else if (isOpenUp && isOpenDown && isOpenRight)
{
} else if (isOpenUp && isOpenDown && isOpenRight) {
return icons[13];
}
else if (isOpenUp && isOpenLeft && isOpenRight)
{
} else if (isOpenUp && isOpenLeft && isOpenRight) {
return icons[11];
}
else if (isOpenDown && isOpenLeft && isOpenRight)
{
} else if (isOpenDown && isOpenLeft && isOpenRight) {
return icons[12];
}
else if (isOpenDown && isOpenUp)
{
} else if (isOpenDown && isOpenUp) {
return icons[6];
}
else if (isOpenLeft && isOpenRight)
{
} else if (isOpenLeft && isOpenRight) {
return icons[5];
}
else if (isOpenDown && isOpenLeft)
{
} else if (isOpenDown && isOpenLeft) {
return icons[10];
}
else if (isOpenDown && isOpenRight)
{
} else if (isOpenDown && isOpenRight) {
return icons[9];
}
else if (isOpenUp && isOpenLeft)
{
} else if (isOpenUp && isOpenLeft) {
return icons[8];
}
else if (isOpenUp && isOpenRight)
{
} else if (isOpenUp && isOpenRight) {
return icons[7];
}
else if (isOpenDown)
{
} else if (isOpenDown) {
return icons[1];
}
else if (isOpenUp)
{
} else if (isOpenUp) {
return icons[2];
}
else if (isOpenLeft)
{
} else if (isOpenLeft) {
return icons[3];
}
else if (isOpenRight)
{
} else if (isOpenRight) {
return icons[4];
}
break;
case 5:
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 - 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 - 1, par4))) {
isOpenDown = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3 + 1, par4), par1IBlockAccess.getBlockMetadata(par2, par3 + 1, par4))) {
isOpenUp = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 - 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 - 1))) {
isOpenLeft = true;
}
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1)))
{
if (shouldConnectToBlock(par1IBlockAccess, par2, par3, par4, par1IBlockAccess.getBlock(par2, par3, par4 + 1), par1IBlockAccess.getBlockMetadata(par2, par3, par4 + 1))) {
isOpenRight = true;
}
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight)
{
if (isOpenUp && isOpenDown && isOpenLeft && isOpenRight) {
return icons[15];
}
else if (isOpenUp && isOpenDown && isOpenLeft)
{
} else if (isOpenUp && isOpenDown && isOpenLeft) {
return icons[13];
}
else if (isOpenUp && isOpenDown && isOpenRight)
{
} else if (isOpenUp && isOpenDown && isOpenRight) {
return icons[14];
}
else if (isOpenUp && isOpenLeft && isOpenRight)
{
} else if (isOpenUp && isOpenLeft && isOpenRight) {
return icons[11];
}
else if (isOpenDown && isOpenLeft && isOpenRight)
{
} else if (isOpenDown && isOpenLeft && isOpenRight) {
return icons[12];
}
else if (isOpenDown && isOpenUp)
{
} else if (isOpenDown && isOpenUp) {
return icons[6];
}
else if (isOpenLeft && isOpenRight)
{
} else if (isOpenLeft && isOpenRight) {
return icons[5];
}
else if (isOpenDown && isOpenLeft)
{
} else if (isOpenDown && isOpenLeft) {
return icons[9];
}
else if (isOpenDown && isOpenRight)
{
} else if (isOpenDown && isOpenRight) {
return icons[10];
}
else if (isOpenUp && isOpenLeft)
{
} else if (isOpenUp && isOpenLeft) {
return icons[7];
}
else if (isOpenUp && isOpenRight)
{
} else if (isOpenUp && isOpenRight) {
return icons[8];
}
else if (isOpenDown)
{
} else if (isOpenDown) {
return icons[1];
}
else if (isOpenUp)
{
} else if (isOpenUp) {
return icons[2];
}
else if (isOpenLeft)
{
} else if (isOpenLeft) {
return icons[4];
}
else if (isOpenRight)
{
} else if (isOpenRight) {
return icons[3];
}
break;