From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- ihl/worldgen/ores/DebugScannerBlock.java | 46 -------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 ihl/worldgen/ores/DebugScannerBlock.java (limited to 'ihl/worldgen/ores/DebugScannerBlock.java') diff --git a/ihl/worldgen/ores/DebugScannerBlock.java b/ihl/worldgen/ores/DebugScannerBlock.java deleted file mode 100644 index a934f60..0000000 --- a/ihl/worldgen/ores/DebugScannerBlock.java +++ /dev/null @@ -1,46 +0,0 @@ -package ihl.worldgen.ores; - -import ihl.IHLCreativeTab; -import net.minecraft.block.Block; -import net.minecraft.block.ITileEntityProvider; -import net.minecraft.block.material.Material; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.world.World; - -public class DebugScannerBlock extends Block implements ITileEntityProvider{ - - public DebugScannerBlock(Material material) - { - super(material); - this.setCreativeTab(IHLCreativeTab.tab); - } - - @Override - public TileEntity createNewTileEntity(World world, int var2) { - return new DebugScannerTileEntity(); - } - - @Override - public boolean hasTileEntity(int metadata) - { - return true; - } - - @Override - public boolean onBlockActivated(World world,int x,int y,int z,EntityPlayer entityPlayer,int i,float pos_x,float pos_y,float pos_z){ - TileEntity te = world.getTileEntity(x,y,z); - if(te instanceof DebugScannerTileEntity) - { - DebugScannerTileEntity bte = (DebugScannerTileEntity)te; - if (bte == null || entityPlayer.isSneaking()) { - return false; - } - else - { - return bte.getGui(entityPlayer); - } - } - return false; - } -} -- cgit v1.2.3