New grate texture
|
@ -14,8 +14,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class BlockGrate extends BlockRotatable
|
public class BlockGrate extends BlockRotatable
|
||||||
{
|
{
|
||||||
private Icon drainIcon;
|
private Icon iconFront;
|
||||||
private Icon fillIcon;
|
|
||||||
|
|
||||||
public BlockGrate(int id)
|
public BlockGrate(int id)
|
||||||
{
|
{
|
||||||
|
@ -32,8 +31,7 @@ public class BlockGrate extends BlockRotatable
|
||||||
@Override
|
@Override
|
||||||
public void registerIcons(IconRegister iconRegister)
|
public void registerIcons(IconRegister iconRegister)
|
||||||
{
|
{
|
||||||
this.drainIcon = iconRegister.registerIcon(Reference.PREFIX + "grate_drain");
|
iconFront = iconRegister.registerIcon(Reference.PREFIX + "grate_front");
|
||||||
this.fillIcon = iconRegister.registerIcon(Reference.PREFIX + "grate_fill");
|
|
||||||
super.registerIcons(iconRegister);
|
super.registerIcons(iconRegister);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +53,7 @@ public class BlockGrate extends BlockRotatable
|
||||||
{
|
{
|
||||||
if (side == 1)
|
if (side == 1)
|
||||||
{
|
{
|
||||||
return drainIcon;
|
return iconFront;
|
||||||
}
|
}
|
||||||
|
|
||||||
return blockIcon;
|
return blockIcon;
|
||||||
|
@ -71,7 +69,7 @@ public class BlockGrate extends BlockRotatable
|
||||||
{
|
{
|
||||||
if (dir == ((TileGrate) entity).getDirection())
|
if (dir == ((TileGrate) entity).getDirection())
|
||||||
{
|
{
|
||||||
return drainIcon;
|
return iconFront;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.3 KiB |