public abstract class Genome extends java.lang.Object implements IGenome
| Modifier | Constructor and Description |
|---|---|
protected |
Genome(IChromosome[] chromosomes) |
protected |
Genome(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
| Modifier and Type | Method and Description |
|---|---|
IAllele |
getActiveAllele(IChromosomeType chromosomeType) |
protected static IAllele |
getActiveAllele(net.minecraft.item.ItemStack itemStack,
IChromosomeType chromosomeType,
ISpeciesRoot speciesRoot) |
static IAllele |
getAllele(net.minecraft.item.ItemStack itemStack,
IChromosomeType type,
boolean active) |
static <A extends IAllele> |
getAllele(net.minecraft.item.ItemStack itemStack,
IChromosomeType type,
boolean active,
java.lang.Class<? extends A> alleleClass) |
IChromosome[] |
getChromosomes() |
IAllele |
getInactiveAllele(IChromosomeType chromosomeType) |
static IAlleleSpecies |
getSpeciesDirectly(ISpeciesRoot speciesRoot,
net.minecraft.item.ItemStack itemStack)
Quickly gets the species without loading the whole genome.
|
static IAllele |
getSpeciesDirectly(net.minecraft.item.ItemStack itemStack,
IChromosomeType chromosomeType,
boolean active)
Quickly gets the species without loading the whole genome.
|
boolean |
isGeneticEqual(IGenome other) |
java.lang.String |
toString() |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrimary, getSecondary, getSpeciesRootprotected Genome(net.minecraft.nbt.NBTTagCompound nbttagcompound)
protected Genome(IChromosome[] chromosomes)
@Nullable public static IAlleleSpecies getSpeciesDirectly(ISpeciesRoot speciesRoot, net.minecraft.item.ItemStack itemStack)
@Nullable public static IAllele getSpeciesDirectly(net.minecraft.item.ItemStack itemStack, IChromosomeType chromosomeType, boolean active)
public static IAllele getAllele(net.minecraft.item.ItemStack itemStack, IChromosomeType type, boolean active)
@Nullable public static <A extends IAllele> A getAllele(net.minecraft.item.ItemStack itemStack, IChromosomeType type, boolean active, java.lang.Class<? extends A> alleleClass)
protected static IAllele getActiveAllele(net.minecraft.item.ItemStack itemStack, IChromosomeType chromosomeType, ISpeciesRoot speciesRoot)
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablepublic IChromosome[] getChromosomes()
getChromosomes in interface IGenomepublic IAllele getActiveAllele(IChromosomeType chromosomeType)
getActiveAllele in interface IGenomepublic IAllele getInactiveAllele(IChromosomeType chromosomeType)
getInactiveAllele in interface IGenomepublic boolean isGeneticEqual(IGenome other)
isGeneticEqual in interface IGenomepublic java.lang.String toString()
toString in class java.lang.Object