public float getHardness(MovingObjectPosition mop, EntityPlayer player) { BPMop bpmop = BPBlockMultipart.rayTrace( worldObj, xCoord, yCoord, zCoord, RayTracer.getStartVector(player), RayTracer.getEndVector(player), getParts()); if (bpmop != null) return bpmop.getPartHit().getHardness(mop, player); return -1; }
public boolean onActivated(EntityPlayer player, BPMop mop, ItemStack item) { return mop.getPartHit().onActivated(player, mop, item); }