mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 23:03:18 +00:00
Add more null annotations
This commit is contained in:
1 parent
60d2820ed6
commit
4dfa29b1ad
11 files changed
+42
-7
No files matched your search
@@ -10,6 +10,8 @@
|
||||
******************************************************************************/
|
||||
package forestry.lepidopterology.genetics;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import forestry.api.genetics.EnumTolerance;
|
||||
import forestry.api.genetics.IAlleleFloat;
|
||||
import forestry.api.genetics.IAlleleFlowers;
|
||||
@@ -57,11 +59,13 @@ public class ButterflyGenome extends Genome implements IButterflyGenome {
|
||||
|
||||
/* SPECIES */
|
||||
@Override
|
||||
@Nonnull
|
||||
public IAlleleButterflySpecies getPrimary() {
|
||||
return (IAlleleButterflySpecies) getActiveAllele(EnumButterflyChromosome.SPECIES);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public IAlleleButterflySpecies getSecondary() {
|
||||
return (IAlleleButterflySpecies) getInactiveAllele(EnumButterflyChromosome.SPECIES);
|
||||
}
|
||||
@@ -132,6 +136,7 @@ public class ButterflyGenome extends Genome implements IButterflyGenome {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public ISpeciesRoot getSpeciesRoot() {
|
||||
return ButterflyManager.butterflyRoot;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user