mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Add Jubiliance description (#35)
* Add Jubilance description * Update GuiBeealyzer.java * Translatable strings
This commit is contained in:
1 parent
e94f967c38
commit
6158afeb86
9 files changed
+64
-39
No files matched your search
@@ -10,11 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.apiculture.gui;
|
||||
|
||||
import forestry.api.apiculture.BeeManager;
|
||||
import forestry.api.apiculture.EnumBeeChromosome;
|
||||
import forestry.api.apiculture.EnumBeeType;
|
||||
import forestry.api.apiculture.IAlleleBeeSpecies;
|
||||
import forestry.api.apiculture.IBee;
|
||||
import forestry.api.apiculture.*;
|
||||
import forestry.api.genetics.AlleleManager;
|
||||
import forestry.api.genetics.IAlleleInteger;
|
||||
import forestry.api.genetics.IAlleleTolerance;
|
||||
@@ -298,6 +294,17 @@ public class GuiBeealyzer extends GuiAlyzer {
|
||||
}
|
||||
}
|
||||
|
||||
String jubilance = null;
|
||||
IAlleleBeeSpecies primary = bee.getGenome().getPrimary();
|
||||
if (primary instanceof IAlleleBeeSpeciesCustom) {
|
||||
IJubilanceProvider provider = ((IAlleleBeeSpeciesCustom) primary).getJubilanceProvider();
|
||||
if (provider != null) jubilance = provider.getDescription();
|
||||
}
|
||||
|
||||
textLayout.newLine();
|
||||
textLayout.newLine();
|
||||
if (jubilance != null) textLayout.drawLine(StringUtil.localizeAndFormat("gui.jubilance", jubilance), COLUMN_0);
|
||||
|
||||
textLayout.endPage();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user