mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Change IAllele.getName to IAllele.getAlleleName to fix obfuscation bugs
This commit is contained in:
1 parent
828dd63acd
commit
438883bb8e
21 files changed
+75
-50
No files matched your search
@@ -28,9 +28,20 @@ public interface IAllele {
|
||||
|
||||
/**
|
||||
* @return Localized short, human-readable identifier used in tooltips and beealyzer.
|
||||
* @deprecated since Forestry 5.3.4. Use {@link #getAlleleName()}.
|
||||
*/
|
||||
@Deprecated
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* @return Localized short, human-readable identifier used in tooltips and beealyzer.
|
||||
* @since Forestry 5.3.4
|
||||
* @apiNote This can't be named "getName" or it can conflict during obfuscation. https://github.com/md-5/SpecialSource/issues/12
|
||||
*/
|
||||
default String getAlleleName() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The unlocalized identifier
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user