Replace deprecated setTypeId() methods with setType()
Get MaterialData instead of raw data wherever possible
Suppress deprecation warnings where no other alternative is possible
Merge branch 'noDeprecation'