for (l = 0; !flag && l <= 10 && l >= -10; l = l <= 0 ? 1 - l : 0 - l) {
for (int j1 = 0; !flag && j1 <= 10 && j1 >= -10; j1 = j1 <= 0 ? 1 - j1 : 0 - j1) {
if (this.world.getType(i + l, j + i1, k + j1) == Blocks.MONSTER_EGGS) {
if (!this.world.getGameRules().getBoolean("mobGriefing")) {
int k1 = this.world.getData(i + l, j + i1, k + j1);
ImmutablePair immutablepair = BlockMonsterEggs.b(k1);
this.world.setTypeAndData(i + l, j + i1, k + j1, (Block) immutablepair.getLeft(), ((Integer) immutablepair.getRight()).intValue(), 3);
} else {
this.world.setAir(i + l, j + i1, k + j1, false);
}
Blocks.MONSTER_EGGS.postBreak(this.world, i + l, j + i1, k + j1, 0);