mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-17 11:05:32 +00:00
* Finalize, minor alloc reduction Also enable Jabel and generic injection * Update dependencies.gradle * Clean up Machine a bit * spotless more enhanced instanceof * Update ModuleMachine.java * More clen * WARN: Removed exception catching * Many, many tiny patches + birthday fix * Spotless * Spotless again * Fix getLow and clamp tolerance value * Revert event -> ignored on unused event parameters * Rename instanceof variables * Update Machine.java * Use StringBuilder * Cache getStack() * Oops, Jabel can't handle that * Spotless * Spotless again My IDE was fighting with it * Remove unused elements + scream test success
48 lines
1.3 KiB
Java
48 lines
1.3 KiB
Java
package binnie.botany.api;
|
|
|
|
import forestry.api.genetics.AlleleManager;
|
|
import forestry.api.genetics.IAllele;
|
|
import forestry.api.genetics.IAlleleArea;
|
|
import forestry.api.genetics.IAlleleFloat;
|
|
import forestry.api.genetics.IAlleleInteger;
|
|
import forestry.api.genetics.IAlleleTolerance;
|
|
import forestry.api.genetics.IChromosomeType;
|
|
import forestry.api.genetics.ISpeciesRoot;
|
|
|
|
public enum EnumFlowerChromosome implements IChromosomeType {
|
|
|
|
SPECIES(IAlleleFlowerSpecies.class),
|
|
PRIMARY(IAlleleInteger.class),
|
|
SECONDARY(IAlleleInteger.class),
|
|
FERTILITY(IAlleleInteger.class),
|
|
TERRITORY(IAlleleArea.class),
|
|
EFFECT(IAlleleFlowerEffect.class),
|
|
LIFESPAN(IAlleleInteger.class),
|
|
TEMPERATURE_TOLERANCE(IAlleleTolerance.class),
|
|
HUMIDITY_TOLERANCE(IAlleleTolerance.class),
|
|
PH_TOLERANCE(IAlleleTolerance.class),
|
|
SAPPINESS(IAlleleFloat.class),
|
|
STEM(IAlleleInteger.class);
|
|
|
|
private final Class<? extends IAllele> cls;
|
|
|
|
EnumFlowerChromosome(Class<? extends IAllele> cls) {
|
|
this.cls = cls;
|
|
}
|
|
|
|
@Override
|
|
public Class<? extends IAllele> getAlleleClass() {
|
|
return cls;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return toString().toLowerCase();
|
|
}
|
|
|
|
@Override
|
|
public ISpeciesRoot getSpeciesRoot() {
|
|
return AlleleManager.alleleRegistry.getSpeciesRoot("rootFlowers");
|
|
}
|
|
}
|