public interface ISpeciesRoot
| Modifier and Type | Method and Description |
|---|---|
IAlyzerPlugin |
getAlyzerPlugin()
Plugin to add information for the handheld genetic analyzer.
|
IBreedingTracker |
getBreedingTracker(net.minecraft.world.World world,
com.mojang.authlib.GameProfile player) |
java.util.List<? extends IMutation> |
getCombinations(IAllele other) |
java.util.List<IMutation> |
getCombinations(IAlleleSpecies parentSpecies0,
IAlleleSpecies parentSpecies1,
boolean shuffle) |
IAllele[] |
getDefaultTemplate() |
java.util.Map<java.lang.String,IAllele[]> |
getGenomeTemplates() |
ISpeciesType |
getIconType()
Species type used to represent this species in icons
|
java.util.List<? extends IIndividual> |
getIndividualTemplates() |
IChromosomeType[] |
getKaryotype() |
IIndividual |
getMember(net.minecraft.item.ItemStack stack) |
IIndividual |
getMember(net.minecraft.nbt.NBTTagCompound compound) |
java.lang.Class<? extends IIndividual> |
getMemberClass() |
default net.minecraft.item.ItemStack |
getMemberStack(IAllele[] template,
ISpeciesType type) |
default net.minecraft.item.ItemStack |
getMemberStack(IAlleleSpecies species,
ISpeciesType type) |
net.minecraft.item.ItemStack |
getMemberStack(IIndividual individual,
ISpeciesType type) |
java.util.List<? extends IMutation> |
getMutations(boolean shuffle) |
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) |
IChromosomeType |
getSpeciesChromosomeType() |
int |
getSpeciesCount() |
default IDatabasePlugin |
getSpeciesPlugin()
Plugin to add information for the handheld genetic analyzer and the database.
|
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) |
ISpeciesType |
getType(net.minecraft.item.ItemStack itemStack) |
default ISpeciesType |
getTypeForMutation(int position)
The type of the species that will be used at the given position of the mutation recipe in the gui.
|
default ISpeciesType[] |
getTypes() |
java.lang.String |
getUID() |
boolean |
isMember(IIndividual individual)
Used to check whether the given
IIndividual is member of this class. |
boolean |
isMember(net.minecraft.item.ItemStack stack)
Used to check whether a given itemstack contains genetic data corresponding to an
IIndividual of this class. |
boolean |
isMember(net.minecraft.item.ItemStack stack,
ISpeciesType type)
Used to check whether a given itemstack contains genetic data corresponding to an
IIndividual of this class and matches the given type. |
void |
registerMutation(IMutation mutation)
Use to register mutations.
|
void |
registerTemplate(IAllele[] template)
Registers a bee template using the UID of the first allele as identifier.
|
void |
registerTemplate(java.lang.String identifier,
IAllele[] template)
Registers a bee template using the passed 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) |
IGenome |
templateAsGenome(IAllele[] template) |
IGenome |
templateAsGenome(IAllele[] templateActive,
IAllele[] templateInactive) |
IIndividual |
templateAsIndividual(IAllele[] template) |
IIndividual |
templateAsIndividual(IAllele[] templateActive,
IAllele[] templateInactive) |
<O,I extends IIndividual> |
translateMember(O objectToTranslator) |
java.lang.String getUID()
java.lang.Class<? extends IIndividual> getMemberClass()
IIndividual.int getSpeciesCount()
boolean isMember(net.minecraft.item.ItemStack stack)
IIndividual of this class.stack - itemstack to check.IIndividual of this class, false otherwise.boolean isMember(net.minecraft.item.ItemStack stack,
ISpeciesType type)
IIndividual of this class and matches the given type.stack - itemstack to check.type - Integer denoting the type needed to match. (i.e. butterfly vs. butterfly serum; bee queens, princesses, drones; etc.)IIndividual of this class, false otherwise.boolean isMember(IIndividual individual)
IIndividual is member of this class.individual - IIndividual to check.@Nullable IIndividual getMember(net.minecraft.item.ItemStack stack)
IIndividual getMember(net.minecraft.nbt.NBTTagCompound compound)
<O,I extends IIndividual> void registerTranslator(java.lang.Object translatorKey, IIndividualTranslator<I,O> translator)
@Nullable <O,I extends IIndividual> IIndividualTranslator<I,O> getTranslator(java.lang.Object translatorKey)
@Nullable <O,I extends IIndividual> I translateMember(O objectToTranslator)
@Nullable ISpeciesType getType(net.minecraft.item.ItemStack itemStack)
ISpeciesType getIconType()
default ISpeciesType[] getTypes()
net.minecraft.item.ItemStack getMemberStack(IIndividual individual, ISpeciesType type)
default net.minecraft.item.ItemStack getMemberStack(IAlleleSpecies species, ISpeciesType type)
default net.minecraft.item.ItemStack getMemberStack(IAllele[] template, ISpeciesType type)
IBreedingTracker getBreedingTracker(net.minecraft.world.World world, @Nullable com.mojang.authlib.GameProfile player)
IIndividual templateAsIndividual(IAllele[] template)
IIndividual templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive)
IChromosome[] templateAsChromosomes(IAllele[] template)
IChromosome[] templateAsChromosomes(IAllele[] templateActive, IAllele[] templateInactive)
void registerTemplate(IAllele[] template)
void registerTemplate(java.lang.String identifier,
IAllele[] template)
@Nullable IAllele[] getTemplate(java.lang.String identifier)
identifier - species UIDIAllele representing a genome.IAllele[] getTemplate(IAlleleSpecies species)
species - speciesIAllele representing a genome.IAllele[] getDefaultTemplate()
IAllele[] getRandomTemplate(java.util.Random rand)
rand - Random to use.java.util.Map<java.lang.String,IAllele[]> getGenomeTemplates()
java.util.List<? extends IIndividual> getIndividualTemplates()
default ISpeciesType getTypeForMutation(int position)
position - 0 = first parent, 1 = second parent, 2 = resultvoid registerMutation(IMutation mutation)
java.util.List<? extends IMutation> getMutations(boolean shuffle)
java.util.List<? extends IMutation> getCombinations(IAllele other)
other - Allele to match mutations against.java.util.List<? extends IMutation> getResultantMutations(IAllele other)
other - Allele to match mutations against.java.util.List<IMutation> getCombinations(IAlleleSpecies parentSpecies0, IAlleleSpecies parentSpecies1, boolean shuffle)
java.util.Collection<? extends IMutation> getPaths(IAllele result, IChromosomeType chromosomeType)
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> getResearchCatalysts()
void setResearchSuitability(net.minecraft.item.ItemStack itemstack,
float suitability)
itemstack - ItemStack to set as suitable.suitability - Float between 0 and 1 to indicate suitability.IChromosomeType[] getKaryotype()
IChromosomeType which are in this species genomeIChromosomeType getSpeciesChromosomeType()
IChromosomeType which is the "key" for this species class, the species chromosome.IAlyzerPlugin getAlyzerPlugin()
@Nullable default IDatabasePlugin getSpeciesPlugin()