// Path: src/main/java/brightspark/sparkshammers/item/ItemHammerNetherStar.java
// public class ItemHammerNetherStar extends ItemAOE
// {
//     public ItemHammerNetherStar(Tool tool)
//     {
//         super(tool, false);
//     }
// 
//     @Override
//     protected boolean shouldShowInCreativeTabs()
//     {
//         return true;
//     }
// 
//     @SideOnly(Side.CLIENT)
//     @Override
//     public boolean hasEffect(ItemStack stack)
//     {
//         return true;
//     }
// 
//     @Override
//     public boolean hitEntity(ItemStack stack, EntityLivingBase entityHit, EntityLivingBase player)
//     {
//         //Damages hammer for 1 tunnel mining use
//         stack.damageItem(1, entityHit);
//         return true;
//     }
// 
//     //Overriding this to stop item damage which is handled elsewhere
//     @Override
//     public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState state, BlockPos pos, EntityLivingBase entityLiving)
//     {
//         return true;
//     }
// 
//     @Override
//     public boolean onBlockStartBreak(ItemStack stack, BlockPos pos, EntityPlayer player)
//     {
//         //Can only mine when the NBT tag isn't true
//         if(NBTHelper.getBoolean(stack, "mining")) return true;
//         return super.onBlockStartBreak(stack, pos, player);
//     }
// }


import brightspark.sparkshammers.item.ItemHammerNetherStar;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
package brightspark.sparkshammers.handlers;


public class MiningObject
{
    public World world;
    public EntityPlayer player;
    public ItemStack stackActual, stackCopy;
    public EnumFacing facing;
    public BlockPos hitPos;
    public float blockStrength;
    public int iteration;

    public MiningObject(EntityPlayer player, BlockPos hitPos, IBlockState state)
    {
        world = player.world;
        this.player = player;
        stackActual = player.getHeldItemMainhand();
        stackCopy = stackActual.copy();
// Path: src/main/java/brightspark/sparkshammers/item/ItemHammerNetherStar.java
// public class ItemHammerNetherStar extends ItemAOE
// {
//     public ItemHammerNetherStar(Tool tool)
//     {
//         super(tool, false);
//     }
// 
//     @Override
//     protected boolean shouldShowInCreativeTabs()
//     {
//         return true;
//     }
// 
//     @SideOnly(Side.CLIENT)
//     @Override
//     public boolean hasEffect(ItemStack stack)
//     {
//         return true;
//     }
// 
//     @Override
//     public boolean hitEntity(ItemStack stack, EntityLivingBase entityHit, EntityLivingBase player)
//     {
//         //Damages hammer for 1 tunnel mining use
//         stack.damageItem(1, entityHit);
//         return true;
//     }
// 
//     //Overriding this to stop item damage which is handled elsewhere
//     @Override
//     public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState state, BlockPos pos, EntityLivingBase entityLiving)
//     {
//         return true;
//     }
// 
//     @Override
//     public boolean onBlockStartBreak(ItemStack stack, BlockPos pos, EntityPlayer player)
//     {
//         //Can only mine when the NBT tag isn't true
//         if(NBTHelper.getBoolean(stack, "mining")) return true;
//         return super.onBlockStartBreak(stack, pos, player);
//     }
// }


// Path: src/main/java/brightspark/sparkshammers/handlers/MiningObject.java
import brightspark.sparkshammers.item.ItemHammerNetherStar;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;

package brightspark.sparkshammers.handlers;


public class MiningObject
{
    public World world;
    public EntityPlayer player;
    public ItemStack stackActual, stackCopy;
    public EnumFacing facing;
    public BlockPos hitPos;
    public float blockStrength;
    public int iteration;

    public MiningObject(EntityPlayer player, BlockPos hitPos, IBlockState state)
    {
        world = player.world;
        this.player = player;
        stackActual = player.getHeldItemMainhand();
        stackCopy = stackActual.copy();
        facing = ((ItemHammerNetherStar) stackActual.getItem()).rayTrace(world, player, false).sideHit.getOpposite();