Revert deletion of deprecated methods
This commit is contained in:
parent
210da278bc
commit
1dfc470de2
1 changed files with 19 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue