New textures for metal caster
This commit is contained in:
parent
7e94dbee68
commit
1cbfa10eea
6 changed files with 14 additions and 17 deletions
|
@ -17,7 +17,9 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
|
||||
public class BlockCast extends BlockTile
|
||||
{
|
||||
Icon top;
|
||||
Icon topIcon;
|
||||
Icon side1Icon;
|
||||
Icon side2Icon;
|
||||
|
||||
public BlockCast(int id)
|
||||
{
|
||||
|
@ -29,28 +31,24 @@ public class BlockCast extends BlockTile
|
|||
@Override
|
||||
public void registerIcons(IconRegister iconReg)
|
||||
{
|
||||
this.top = iconReg.registerIcon(Reference.PREFIX + "material_wood_top");
|
||||
topIcon = iconReg.registerIcon(Reference.PREFIX + "metalCast_top");
|
||||
side1Icon = iconReg.registerIcon(Reference.PREFIX + "metalCast_side_1");
|
||||
side2Icon = iconReg.registerIcon(Reference.PREFIX + "metalCast_side_2");
|
||||
super.registerIcons(iconReg);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Icon getBlockTexture(IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
return getIcon(side, 0);
|
||||
}
|
||||
|
||||
/** Returns the block texture based on the side being looked at. Args: side */
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Icon getIcon(int side, int meta)
|
||||
{
|
||||
if (side == 1)
|
||||
{
|
||||
return top;
|
||||
}
|
||||
|
||||
if (side == 0)
|
||||
return blockIcon;
|
||||
|
||||
if (side == 1)
|
||||
return topIcon;
|
||||
|
||||
return side % 2 == 0 ? side1Icon : side2Icon;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -60,7 +58,6 @@ public class BlockCast extends BlockTile
|
|||
|
||||
if (tile != null)
|
||||
tile.updateEntity();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -17,7 +17,7 @@ public class RenderCast extends RenderItemOverlayTile
|
|||
if (tileEntity instanceof TileCast)
|
||||
{
|
||||
TileCast tile = (TileCast) tileEntity;
|
||||
renderItemOnSides(tileEntity, tile.getStackInSlot(0), x, y, z, "Empty");
|
||||
renderItemOnSides(tileEntity, tile.getStackInSlot(0), x, y, z, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class RenderMillstone extends RenderItemOverlayTile
|
|||
if (tileEntity instanceof TileMillstone)
|
||||
{
|
||||
TileMillstone tile = (TileMillstone) tileEntity;
|
||||
renderItemOnSides(tileEntity, tile.getStackInSlot(0), x, y, z, "Empty");
|
||||
renderItemOnSides(tileEntity, tile.getStackInSlot(0), x, y, z, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 993 B |
Loading…
Reference in a new issue