Add Jubiliance description (#35)

* Add Jubilance description

* Update GuiBeealyzer.java

* Translatable strings
This commit is contained in:
Jakub authored and GitHub committed 2022-10-16 13:45:10 +02:00
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();
}
}