jones get away
if (getWorld() instanceof Modificationscreen) {
//your current world class is Modificationscreen;
}
else if (getWorld() instanceof terrainone) {
//your world class is terrainone;
}int selectiontracksValue = ((tracksbutton) getObjects(tracksbutton.class).get(0)).getshared();