Refractored Code

+added Solar Factory
-removed unnessecary solar and essentia generator classes
+started gtnh researches
+added tooltip clearance on solars (maximal output)

Signed-off-by: bartimaeusnek <[email protected]>
This commit is contained in:
bartimaeusnek committed 2019-03-18 18:39:23 +01:00
1 parent 980df8516a
commit 0fecf28b65
397 files changed
+8693 -9288

No files matched your search

+52 -52
View File
@@ -17,68 +17,68 @@ import java.util.Random;
public class BlockPortableNode extends BlockAiry {
public IIcon texture;
public IIcon texture;
public BlockPortableNode(String name) {
this.setCreativeTab(EMT.TAB);
setBlockName(EMT.MOD_ID + "." + name);
setBlockUnbreakable();
}
public BlockPortableNode(String name) {
this.setCreativeTab(EMT.TAB);
setBlockName(EMT.MOD_ID + "." + name);
setBlockUnbreakable();
}
@Override
public TileEntity createTileEntity(World world, int meta) {
return new TileEntityPortableNode();
}
@Override
public TileEntity createTileEntity(World world, int meta) {
return new TileEntityPortableNode();
}
@Override
public int quantityDropped(Random par1Random) {
return 0;
}
@Override
public int quantityDropped(Random par1Random) {
return 0;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
protected boolean canSilkHarvest() {
return false;
}
@Override
protected boolean canSilkHarvest() {
return false;
}
public boolean canEntityDestroy(World world, int x, int y, int z, Entity entity) {
return false;
}
public boolean canEntityDestroy(World world, int x, int y, int z, Entity entity) {
return false;
}
public void onBlockExploded(World world, int x, int y, int z, Explosion explosion) {
}
public void onBlockExploded(World world, int x, int y, int z, Explosion explosion) {
}
@SideOnly(Side.CLIENT)
@Override
public void registerBlockIcons(IIconRegister ri) {
texture = ri.registerIcon(EMT.TEXTURE_PATH + ":portablenode");
}
@SideOnly(Side.CLIENT)
@Override
public void registerBlockIcons(IIconRegister ri) {
texture = ri.registerIcon(EMT.TEXTURE_PATH + ":portablenode");
}
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return texture;
}
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return texture;
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
if (!world.isRemote && player.isSneaking() && player.getHeldItem() == null) {
world.setBlockToAir(x, y, z);
world.removeTileEntity(x, y, z);
}
return true;
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {
if (!world.isRemote && player.isSneaking() && player.getHeldItem() == null) {
world.setBlockToAir(x, y, z);
world.removeTileEntity(x, y, z);
}
return true;
}
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
return null;
}
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
return null;
}
}