More compatibility fixes

This commit is contained in:
Muramasa 2016-08-21 13:26:38 +01:00
parent a0066b4a26
commit 0c4ec9a724

View file

@ -1805,6 +1805,11 @@ public class Materials implements IColorModulationContainer, ISubTagContainer {
return mRGBa; return mRGBa;
} }
/** This is for keeping compatiblity with addons mods (Such as TinkersGregworks) that looped over the old materials enum **/
public String name() {
return mName;
}
/** This is for keeping compatiblity with addons mods (Such as TinkersGregworks) that looped over the old materials enum **/ /** This is for keeping compatiblity with addons mods (Such as TinkersGregworks) that looped over the old materials enum **/
public static Materials[] values() { public static Materials[] values() {
return MATERIALS_ARRAY; return MATERIALS_ARRAY;