I have found a better method for your player interact event that works better and does not use as much time and processing power
Your original code:
//Block c9 = world.getBlockAt(x, y, z);
//Block c1 = world.getBlockAt(x + 8, y, z);
//Block c2 = world.getBlockAt(x - 8, y, z)...