Fix issue #4; when updating function calls for latest forge in 8d3f8df49c, API was inadvertently broken

This commit is contained in:
Dave Smith committed 2019-02-26 13:17:56 -07:00
1 parent a86540a198
commit 9475b27785
3 files changed
+30

No files matched your search

@@ -70,6 +70,11 @@ public enum EnumColor implements IStringSerializable
return I18n.translateToLocal("color." + unlocalizedName);
}
@Deprecated
public String getUnlocalizedName(){
return getTranslationKey();
}
public String getTranslationKey(){
return "color." + unlocalizedName;
}
+20
View File
@@ -91,6 +91,15 @@ public class Gas
return this;
}
/**
* DEPRECATED: Gets the unlocalized name of this Gas. Use getTranslationKey instead.
* @return this Gas's unlocalized name
*/
@Deprecated
public String getUnlocalizedName() {
return getTranslationKey();
}
/**
* Gets the unlocalized name of this Gas.
* @return this Gas's unlocalized name
@@ -109,6 +118,17 @@ public class Gas
return I18n.translateToLocal(getTranslationKey());
}
/**
* DEPRECATED: Sets the unlocalized name of this Gas. Use setTranslationKey instead.
* @param s - unlocalized name to set
* @return this Gas object
*/
@Deprecated
public Gas setUnlocalizedName(String s)
{
return setTranslationKey(s);
}
/**
* Sets the unlocalized name of this Gas.
* @param s - unlocalized name to set
@@ -34,6 +34,11 @@ public final class InfuseType
sprite = tex;
}
@Deprecated
public InfuseType setUnlocalizedName(String name) {
return setTranslationKey(name);
}
public InfuseType setTranslationKey(String name)
{
unlocalizedName = "infuse." + name;