@Override
public void onBlockHarvested(World world, int x, int y, int z, int metadata, EntityPlayer player) {
if( player.capabilities.isCreativeMode )
return;
TileMachine entity = (TileMachine) world.getBlockTileEntity( x, y, z );
if( entity != null ) {
for( ItemStack stack : entity.getDropItems() ) {
if( stack != null )
Utils.dropItemAsEntity( world, x, y, z, stack );
}
}
}