Added Missing Textures

This commit is contained in:
Ellpeck 2015-07-12 04:31:05 +02:00
parent 9c931c7836
commit 543a3f652b
17 changed files with 5 additions and 4 deletions

View file

@ -30,7 +30,7 @@ import java.util.Random;
public class BlockTreasureChest extends Block implements INameableItem{
private IIcon topIcon;
private IIcon onIcon;
private IIcon bottomIcon;
private IIcon frontIcon;
public BlockTreasureChest(){
@ -65,6 +65,7 @@ public class BlockTreasureChest extends Block implements INameableItem{
@Override
public IIcon getIcon(int side, int meta){
if(side == 1) return this.topIcon;
if(side == 0) return this.bottomIcon;
if(side == 3) return this.frontIcon;
return this.blockIcon;
}
@ -73,8 +74,8 @@ public class BlockTreasureChest extends Block implements INameableItem{
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side){
int meta = world.getBlockMetadata(x, y, z);
if(side == 1) return this.topIcon;
if(side == meta+2 && meta <= 3) return this.frontIcon;
else if(side == meta-2 && meta > 3) return this.onIcon;
if(side == meta+2) return this.frontIcon;
if(side == 0) return this.bottomIcon;
return this.blockIcon;
}
@ -83,7 +84,7 @@ public class BlockTreasureChest extends Block implements INameableItem{
public void registerBlockIcons(IIconRegister iconReg){
this.blockIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName());
this.topIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Top");
this.onIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "On");
this.bottomIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Bottom");
this.frontIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Front");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B