Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BlockRadar extends Block {
- public World radar;
- public AxisAlignedBB boundingBox;
- private int range;
- TileEntityRadar TERadar = new TileEntityRadar(range);
- public BlockRadar(int range) {
- super(Material.iron);
- this.range = range;
- this.setCreativeTab(Main.tabPowerTools);
- this.setBlockName("radar");
- // TODO Auto-generated constructor stub
- }
- public TileEntity createNewTileEntity(World world, int par2)
- {
- TERadar = new TileEntityRadar(range);
- return TERadar;
- }
- public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_)
- {
- return Item.getItemFromBlock(this);
- }
- /**
- * Returns the quantity of items to drop on block destruction.
- */
- public int quantityDropped(Random p_149745_1_)
- {
- return 1;
- }
- public boolean onBlockActivated(World world, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) {
- //TERadar.shouldPrint = true;
- TERadar.printInfo();
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement