@Override public boolean getFireproof() { return ((IAlleleBoolean) getActiveAllele(EnumTreeChromosome.FIREPROOF)).getValue(); }
@Override public String getAlleleName(final IChromosomeType chromosome, final IAllele allele) { if (allele instanceof IAlleleBoolean) { IAlleleBoolean alleleBoolean = (IAlleleBoolean) allele; return alleleBoolean.getValue() ? I18N.localise("binniecore.allele.true") : I18N.localise("binniecore.allele.false"); } if (Objects.equals(allele.getAlleleName(), "for.gui.maximum")) { return I18N.localise("binniecore.allele.fertility.maximum"); } return allele.getAlleleName(); }
return out; } else if (allele instanceof IAlleleBoolean) { return ((IAlleleBoolean) allele).getValue(); } else if (allele instanceof IAlleleFloat) { return ((IAlleleFloat) allele).getValue();
if (primaryFireproof.getValue()) { list.add(TextFormatting.RED + Translator.translateToLocal("for.gui.fireresist"));
new ControlTextCentered(this, y, TextFormatting.UNDERLINE + getTitle()).setColor(getColor()); y += 12; if (((IAlleleBoolean) ind.getGenome().getActiveAllele(EnumTreeChromosome.FIREPROOF)).getValue()) { new ControlIconDisplay(this, (getWidth() - 16) / 2, y, analystManager.getIcons().getIconNoFire()).addTooltip(I18N.localise(AnalystConstants.WOOD_KEY + ".fireproof")); } else {