Completed Lamp Powerer

This commit is contained in:
Ellpeck 2015-07-07 15:27:26 +02:00
parent 311fadbc4b
commit f9af65dc31
5 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,6 @@ import java.util.List;
public class BlockLampPowerer extends Block implements INameableItem{
private IIcon frontIcon;
private IIcon topIcon;
public BlockLampPowerer(){
super(Material.rock);
@ -45,7 +44,6 @@ public class BlockLampPowerer extends Block implements INameableItem{
@Override
public IIcon getIcon(int side, int meta){
if(side == 0 || side == 1) return this.topIcon;
if(side == 3) return this.frontIcon;
return this.blockIcon;
}
@ -53,7 +51,6 @@ public class BlockLampPowerer extends Block implements INameableItem{
@Override
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side){
int meta = world.getBlockMetadata(x, y, z);
if(side != meta && (side == 0 || side == 1)) return this.topIcon;
if(side == meta) return this.frontIcon;
return this.blockIcon;
}
@ -91,7 +88,6 @@ public class BlockLampPowerer extends Block implements INameableItem{
public void registerBlockIcons(IIconRegister iconReg){
this.blockIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName());
this.frontIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Front");
this.topIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + this.getName() + "Top");
}
public static class TheItemBlock extends ItemBlock{

View file

@ -71,6 +71,7 @@ public class CreativeTab extends CreativeTabs{
add(InitBlocks.blockTestifiBucksGreenSlab);
add(InitBlocks.blockTestifiBucksWhiteSlab);
add(InitBlocks.blockColoredLamp);
add(InitBlocks.blockLampPowerer);
add(InitItems.itemDrill);
add(InitItems.itemDrillUpgradeSpeed);

View file

@ -63,7 +63,10 @@ tooltip.actuallyadditions.blockCoalGenerator.desc=Produces Energy from Coal and
tooltip.actuallyadditions.blockColoredLamp.desc.1=Sneak-Right-Click to turn me on!
tooltip.actuallyadditions.blockColoredLamp.desc.2=Right-Click me with a Dye to dye me!
tooltip.actuallyadditions.blockColoredLamp.desc.3=Use a Lamp Powerer to toggle me with Redstone!
tooltip.actuallyadditions.blockColoredLamp.desc.3=Use a Lamp Controller to toggle me with Redstone!
tile.actuallyadditions.blockLampPowerer.name=Lamp Controller
tooltip.actuallyadditions.blockLampPowerer.desc=Place me facing towards a Lamp and power me with Redstone to turn it on!
tile.actuallyadditions.blockColoredLampWhite.name=White Lamp
tile.actuallyadditions.blockColoredLampOrange.name=Orange Lamp

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B