Fixed localization

This commit is contained in:
Francesco Macagno 2015-08-04 19:24:35 -07:00
parent ea146023f0
commit 8c54aea0de
27 changed files with 1007 additions and 979 deletions

View file

@ -24,6 +24,7 @@ public class BlockAir extends Block
public BlockAir() {
super(Material.air);
setHardness(0.0F);
setBlockName("warpdrive.blocks.Air");
}
@Override

View file

@ -27,6 +27,7 @@ public class BlockDecorative extends Block {
setHardness(0.5f);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.decorative.Plain");
}
public boolean isValidDamage(int damage) {

View file

@ -18,6 +18,7 @@ public class BlockGas extends Block {
public BlockGas() {
super(Material.air);
setHardness(0.0F);
setBlockName("warpdrive.blocks.Gas");
}
@Override

View file

@ -17,6 +17,7 @@ public class BlockIridium extends Block
setResistance(150 * 4);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.blocks.IridiumBlock");
}
@Override

View file

@ -15,6 +15,7 @@ public class BlockTransportBeacon extends Block {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.blocks.TransportBeacon");
}
@Override

View file

@ -31,6 +31,7 @@ public class BlockAirGenerator extends BlockContainer
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.machines.AirGenerator");
}
@Override

View file

@ -26,6 +26,8 @@ public class BlockCamera extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.CloakingCoil");
this.setBlockName("warpdrive.machines.Camera");
}
@Override

View file

@ -17,6 +17,7 @@ public class BlockCloakingCoil extends Block {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.CloakingCoil");
}
@Override

View file

@ -23,6 +23,7 @@ public class BlockCloakingDeviceCore extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.CloakingDeviceCore");
}
@Override
@ -71,7 +72,7 @@ public class BlockCloakingDeviceCore extends BlockContainer {
TileEntityCloakingDeviceCore te = (TileEntityCloakingDeviceCore)par1World.getTileEntity(par2, par3, par4);
if (te != null && (par5EntityPlayer.getHeldItem() == null)) {
par5EntityPlayer.addChatMessage(new ChatComponentText(te.getStatus() + "\n"
// + " Valid? " + te.isValid + " Cloaking? " + te.isCloaking + " Enabled? " + te.isEnabled + "\n"
// + " Valid? " + te.isValid + " Cloaking? " + te.isCloaking + " Enabled? " + te.isEnabled + "\n"
+ ((!te.isValid) ? "Invalid assembly!" :
((!te.isEnabled) ? "Cloak is disabled" :
((te.isCloaking) ? "A tier " + te.tier + " cloak is currently covering " + te.volume + " blocks!" : "Cloak needs more power!")))));

View file

@ -22,6 +22,7 @@ public class BlockLaser extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.Laser");
}
@Override

View file

@ -26,6 +26,7 @@ public class BlockLaserCam extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.LaserCamera");
}
@Override

View file

@ -14,6 +14,7 @@ public class BlockLaserReactorMonitor extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.LaserReactorMonitor");
}
public BlockLaserReactorMonitor(Material material) {

View file

@ -20,6 +20,7 @@ public class BlockLaserTreeFarm extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.LaserTreeFarm");
}
@Override

View file

@ -24,6 +24,7 @@ public class BlockLift extends BlockContainer
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.LaserLift");
}
@Override

View file

@ -29,6 +29,7 @@ public class BlockMiningLaser extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
this.setBlockName("warpdrive.machines.MiningLaser");
}
@Override

View file

@ -26,6 +26,7 @@ public class BlockMonitor extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.machines.Monitor");
}
@Override

View file

@ -23,6 +23,7 @@ public class BlockParticleBooster extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.machines.ParticleBooster");
}
@Override

View file

@ -10,6 +10,7 @@ public class BlockPowerLaser extends WarpBlockContainer {
public BlockPowerLaser() {
setResistance(100.0F);
setBlockName("warpdrive.power.Laser");
}
@Override

View file

@ -11,6 +11,7 @@ public class BlockPowerReactor extends WarpBlockContainer {
public BlockPowerReactor() {
super();
setBlockName("warpdrive.power.Reactor");
}
@Override

View file

@ -12,6 +12,7 @@ public class BlockPowerStore extends WarpBlockContainer {
private IIcon iconBuffer;
public BlockPowerStore() {
setBlockName("warpdrive.power.Store");
}
@Override

View file

@ -27,6 +27,7 @@ public class BlockProtocol extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.machines.WarpProtocol");
}
@Override

View file

@ -30,6 +30,7 @@ public class BlockRadar extends BlockContainer
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.machines.WarpRadar");
}
@Override

View file

@ -25,6 +25,7 @@ public class BlockReactor extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.machines.WarpCore");
}
@Override

View file

@ -23,6 +23,7 @@ public class BlockShipScanner extends BlockContainer {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.machines.Scanner");
}
@Override

View file

@ -12,6 +12,7 @@ public class BlockTransporter extends WarpBlockContainer {
public BlockTransporter(Material par2Material) {
super(par2Material);
setBlockName("warpdrive.machines.Transporter");
}
@Override

View file

@ -17,6 +17,7 @@ public class BlockWarpIsolation extends Block {
setHardness(0.5F);
setStepSound(Block.soundTypeMetal);
setCreativeTab(WarpDrive.warpdriveTab);
setBlockName("warpdrive.blocks.WarpIsolation");
}
@Override

View file

@ -22,6 +22,7 @@ tile.warpdrive.blocks.Air.name=Air Block
tile.warpdrive.blocks.Gas.name=Gas Block
tile.warpdrive.blocks.WarpIsolation.name=Warp-field Isolation Block
tile.warpdrive.blocks.IridiumBlock.name=Iridium Block
tile.warpdrive.blocks.TransportBeacon.name=Transport Beacon
tile.warpdrive.decorative.Plain.name=Plain Block
tile.warpdrive.decorative.Energized.name=Energized Block