public abstract class SpeciesRoot extends java.lang.Object implements ISpeciesRoot
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<java.lang.String,IAllele[]> |
speciesTemplates |
| Constructor and Description |
|---|
SpeciesRoot() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IMutation> |
getCombinations(IAllele other) |
java.util.List<IMutation> |
getCombinations(IAlleleSpecies parentSpecies0,
IAlleleSpecies parentSpecies1,
boolean shuffle) |
java.util.Map<java.lang.String,IAllele[]> |
getGenomeTemplates() |
java.util.Collection<? extends IMutation> |
getPaths(IAllele result,
IChromosomeType chromosomeType) |
IAllele[] |
getRandomTemplate(java.util.Random rand) |
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> |
getResearchCatalysts() |
java.util.List<? extends IMutation> |
getResultantMutations(IAllele other) |
IAllele[] |
getTemplate(IAlleleSpecies species)
Retrieves a registered template using the passed species.
|
IAllele[] |
getTemplate(java.lang.String identifier)
Retrieves a registered template using the passed species unique identifier.
|
<O,I extends IIndividual> |
getTranslator(java.lang.Object translatorKey) |
void |
registerTemplate(IAllele[] template)
Registers a bee template using the UID of the first allele as identifier.
|
<O,I extends IIndividual> |
registerTranslator(java.lang.Object translatorKey,
IIndividualTranslator<I,O> translator) |
void |
setResearchSuitability(net.minecraft.item.ItemStack itemstack,
float suitability)
Sets an item stack as a valid (generic) research catalyst for this class.
|
IChromosome[] |
templateAsChromosomes(IAllele[] template) |
IChromosome[] |
templateAsChromosomes(IAllele[] templateActive,
IAllele[] templateInactive) |
<O,I extends IIndividual> |
translateMember(O objectToTranslator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlyzerPlugin, getBreedingTracker, getDefaultTemplate, getIconType, getIndividualTemplates, getKaryotype, getMember, getMember, getMemberClass, getMemberStack, getMemberStack, getMemberStack, getMutations, getSpeciesChromosomeType, getSpeciesCount, getSpeciesPlugin, getType, getTypeForMutation, getTypes, getUID, isMember, isMember, isMember, registerMutation, registerTemplate, templateAsGenome, templateAsGenome, templateAsIndividual, templateAsIndividualprotected final java.util.HashMap<java.lang.String,IAllele[]> speciesTemplates
public java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> getResearchCatalysts()
getResearchCatalysts in interface ISpeciesRootpublic void setResearchSuitability(net.minecraft.item.ItemStack itemstack,
float suitability)
ISpeciesRootsetResearchSuitability in interface ISpeciesRootitemstack - ItemStack to set as suitable.suitability - Float between 0 and 1 to indicate suitability.public java.util.Map<java.lang.String,IAllele[]> getGenomeTemplates()
getGenomeTemplates in interface ISpeciesRootpublic void registerTemplate(IAllele[] template)
ISpeciesRootregisterTemplate in interface ISpeciesRootpublic IAllele[] getRandomTemplate(java.util.Random rand)
getRandomTemplate in interface ISpeciesRootrand - Random to use.public IAllele[] getTemplate(java.lang.String identifier)
ISpeciesRootgetTemplate in interface ISpeciesRootidentifier - species UIDIAllele representing a genome.public IAllele[] getTemplate(IAlleleSpecies species)
ISpeciesRootgetTemplate in interface ISpeciesRootspecies - speciesIAllele representing a genome.public <O,I extends IIndividual> void registerTranslator(java.lang.Object translatorKey, IIndividualTranslator<I,O> translator)
registerTranslator in interface ISpeciesRoot@Nullable public <O,I extends IIndividual> IIndividualTranslator<I,O> getTranslator(java.lang.Object translatorKey)
getTranslator in interface ISpeciesRoot@Nullable public <O,I extends IIndividual> I translateMember(O objectToTranslator)
translateMember in interface ISpeciesRootpublic java.util.List<IMutation> getCombinations(IAllele other)
getCombinations in interface ISpeciesRootother - Allele to match mutations against.public java.util.List<? extends IMutation> getResultantMutations(IAllele other)
getResultantMutations in interface ISpeciesRootother - Allele to match mutations against.public java.util.List<IMutation> getCombinations(IAlleleSpecies parentSpecies0, IAlleleSpecies parentSpecies1, boolean shuffle)
getCombinations in interface ISpeciesRootpublic java.util.Collection<? extends IMutation> getPaths(IAllele result, IChromosomeType chromosomeType)
getPaths in interface ISpeciesRootpublic IChromosome[] templateAsChromosomes(IAllele[] template)
templateAsChromosomes in interface ISpeciesRootpublic IChromosome[] templateAsChromosomes(IAllele[] templateActive, IAllele[] templateInactive)
templateAsChromosomes in interface ISpeciesRoot