Examples of breakBlock()


Examples of net.minecraft.block.Block.breakBlock()

          Block block2 = coord.getBlock(player.worldObj);

          block2.onBlockDestroyedByPlayer(player.worldObj, coord.xCoord, coord.yCoord, coord.zCoord, meta);
          player.worldObj.playAuxSFXAtEntity(null, 2001, coord.xCoord, coord.yCoord, coord.zCoord, meta << 12);
          player.worldObj.setBlockToAir(coord.xCoord, coord.yCoord, coord.zCoord);
          block2.breakBlock(player.worldObj, coord.xCoord, coord.yCoord, coord.zCoord, block, meta);
          block2.dropBlockAsItem(player.worldObj, coord.xCoord, coord.yCoord, coord.zCoord, meta, 0);

          setEnergy(itemstack, getEnergy(itemstack) - (ENERGY_USAGE*getEfficiency(itemstack)));
        }
      }
 
View Full Code Here

Examples of net.minecraft.block.Block.breakBlock()

      ebs.setExtBlockID(x, y & 15, z, id);

      if (oldBlock != null) {
        if (!worldObj.isRemote) {
          oldBlock.breakBlock(worldObj, wX, y, wZ, oldId, oldMeta);
        } else if (oldBlock.hasTileEntity(oldMeta)) {
          TileEntity te = worldObj.getBlockTileEntity(wX, y, wZ);
          if (te != null && te.shouldRefresh(oldId, id, oldMeta, meta, worldObj, wX, y, wZ)) {
            worldObj.removeBlockTileEntity(wX, y, wZ);
          }
View Full Code Here

Examples of powercrystals.minefactoryreloaded.api.IFactoryHarvestable.breakBlock()

   
    harvestable.preHarvest(worldObj, targetCoords.x, targetCoords.y, targetCoords.z);
   
    doDrop(drops);
   
    if(harvestable.breakBlock())
    {
      if(MFRConfig.playSounds.getBoolean(true))
      {
        worldObj.playAuxSFXAtEntity(null, 2001, targetCoords.x, targetCoords.y, targetCoords.z, harvestedBlockId + (harvestedBlockMetadata << 12));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.