Fixed the textures for logs to display according to their orientation
This commit is contained in:
parent
9b2ad6f701
commit
d6afcf50d2
11 changed files with 44 additions and 88 deletions
|
@ -36,14 +36,10 @@ public class BlockAcaciaLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockCherryLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockDarkLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockDeadLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockFirLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockHolyLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,14 +35,10 @@ public class BlockMagicLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockMangroveLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockPalmLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockRedwoodLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,14 +36,10 @@ public class BlockWillowLog extends Block
|
|||
|
||||
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
|
||||
{
|
||||
if(par1 == 0 || par1 == 1)
|
||||
{
|
||||
return blockIcon[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
return blockIcon[1];
|
||||
}
|
||||
int pos = par2 & 12;
|
||||
if (pos == 0 && (par1 == 1 || par1 == 0) || pos == 4 && (par1 == 5 || par1 == 4) || pos == 8 && (par1 == 2 || par1 == 3))
|
||||
return blockIcon[0];
|
||||
return blockIcon[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue