Changing root Java class for constructing blocks. Different to normal classes.