New grate texture

This commit is contained in:
Calclavia 2014-02-24 13:33:13 +08:00
parent d2a40b0b2e
commit 6465b40bb4
7 changed files with 4 additions and 6 deletions

View file

@ -14,8 +14,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockGrate extends BlockRotatable
{
private Icon drainIcon;
private Icon fillIcon;
private Icon iconFront;
public BlockGrate(int id)
{
@ -32,8 +31,7 @@ public class BlockGrate extends BlockRotatable
@Override
public void registerIcons(IconRegister iconRegister)
{
this.drainIcon = iconRegister.registerIcon(Reference.PREFIX + "grate_drain");
this.fillIcon = iconRegister.registerIcon(Reference.PREFIX + "grate_fill");
iconFront = iconRegister.registerIcon(Reference.PREFIX + "grate_front");
super.registerIcons(iconRegister);
}
@ -55,7 +53,7 @@ public class BlockGrate extends BlockRotatable
{
if (side == 1)
{
return drainIcon;
return iconFront;
}
return blockIcon;
@ -71,7 +69,7 @@ public class BlockGrate extends BlockRotatable
{
if (dir == ((TileGrate) entity).getDirection())
{
return drainIcon;
return iconFront;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB