@Override
    public void setLocked(boolean locked) {
        for (int i = 0; i < this.getQuantity(); i++) {
            if (this.getChild(i) instanceof TerrainQuad) {
                ((TerrainQuad) getChild(i)).setLocked(locked);
            } else if (this.getChild(i) instanceof TerrainPatch) {
                if (locked)
                    ((TerrainPatch) getChild(i)).lockMesh();
                else
                    ((TerrainPatch) getChild(i)).unlockMesh();
            }
        }
    }
lock or unlock the meshes of this terrain.
Locked meshes are uneditable but have better performance.
@param locked or unlocked
jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainQuad.java