Revert deletion of deprecated methods

This commit is contained in:
Exidex 2017-05-06 02:39:14 +02:00
parent 210da278bc
commit 1dfc470de2

View file

@ -1571,6 +1571,25 @@ public class Materials implements ISubTagContainer, Comparable<Materials> {
else mAspects.addAll(aAspects);
}
/**
* This is for keeping compatibility with addons mods (Such as TinkersGregworks etc) that looped over the old materials enum
*/
@Deprecated
public String name() {
return mName;
}
/**
* This is for keeping compatibility with addons mods (Such as TinkersGregworks etc) that looped over the old materials enum
*/
@Deprecated
public static Materials valueOf(String aMaterialName) {
return getMaterialsMap().get(aMaterialName);
}
/**
* This is for keeping compatibility with addons mods (Such as TinkersGregworks etc) that looped over the old materials enum
*/
public static Materials[] values() {
return MATERIALS_ARRAY;
}