Oups...
Missings from previous commit
This commit is contained in:
parent
51a4b6e099
commit
512a38f629
2 changed files with 6 additions and 46 deletions
|
@ -3,21 +3,18 @@ package cr0s.WarpDrive.machines;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import cr0s.WarpDrive.WarpDrive;
|
||||
import cr0s.WarpDrive.WarpBlockContainer;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockPowerLaser extends BlockContainer {
|
||||
public class BlockPowerLaser extends WarpBlockContainer {
|
||||
static Icon[] iconBuffer = new Icon[16];
|
||||
public BlockPowerLaser(int id) {
|
||||
super(id, Material.iron);
|
||||
setHardness(0.5F);
|
||||
setStepSound(Block.soundMetalFootstep);
|
||||
setCreativeTab(WarpDrive.warpdriveTab);
|
||||
super(id);
|
||||
setUnlocalizedName("warpdrive.power.Laser");
|
||||
setResistance(100.0F);
|
||||
}
|
||||
|
@ -27,22 +24,6 @@ public class BlockPowerLaser extends BlockContainer {
|
|||
return new TileEntityPowerLaser();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockAdded(World w,int x,int y, int z) {
|
||||
TileEntity te = w.getBlockTileEntity(x, y, z);
|
||||
if (te instanceof TileEntityPowerLaser) {
|
||||
((TileEntityPowerLaser)te).scanForReactor();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNeighborBlockChange(World w, int x, int y, int z, int b) {
|
||||
TileEntity te = w.getBlockTileEntity(x, y, z);
|
||||
if (te instanceof TileEntityPowerLaser) {
|
||||
((TileEntityPowerLaser)te).updateNeighbours();
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isActive(int side, int meta) {
|
||||
if (side == 3 && meta == 1) {
|
||||
return true;
|
||||
|
|
|
@ -3,22 +3,19 @@ package cr0s.WarpDrive.machines;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import cr0s.WarpDrive.WarpDrive;
|
||||
import cr0s.WarpDrive.WarpBlockContainer;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockPowerReactor extends BlockContainer {
|
||||
public class BlockPowerReactor extends WarpBlockContainer {
|
||||
Icon[] iconBuffer = new Icon[17];
|
||||
|
||||
public BlockPowerReactor(int id) {
|
||||
super(id, Material.iron);
|
||||
setHardness(0.5F);
|
||||
setStepSound(Block.soundMetalFootstep);
|
||||
setCreativeTab(WarpDrive.warpdriveTab);
|
||||
super(id);
|
||||
setUnlocalizedName("warpdrive.power.Reactor");
|
||||
}
|
||||
|
||||
|
@ -27,24 +24,6 @@ public class BlockPowerReactor extends BlockContainer {
|
|||
return new TileEntityPowerReactor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockAdded(World w,int x, int y,int z) {
|
||||
super.onBlockAdded(w, x, y, z);
|
||||
|
||||
TileEntity te = w.getBlockTileEntity(x, y, z);
|
||||
if(te instanceof TileEntityPowerReactor) {
|
||||
((TileEntityPowerReactor)te).updateNeighbours();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNeighborBlockChange(World w,int x,int y,int z,int b) {
|
||||
TileEntity te = w.getBlockTileEntity(x, y, z);
|
||||
if(te instanceof TileEntityPowerReactor) {
|
||||
((TileEntityPowerReactor)te).updateNeighbours();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void breakBlock(World w,int x,int y,int z, int oid,int om) {
|
||||
super.breakBlock(w, x, y, z, oid, om);
|
||||
|
|
Loading…
Reference in a new issue