public class Chromosome extends java.lang.Object implements IChromosome
| Constructor and Description |
|---|
Chromosome(IAllele allele) |
Chromosome(IAllele primary,
IAllele secondary) |
| Modifier and Type | Method and Description |
|---|---|
static Chromosome |
create(java.lang.String primarySpeciesUid,
java.lang.String secondarySpeciesUid,
IChromosomeType chromosomeType,
net.minecraft.nbt.NBTTagCompound nbt) |
IAllele |
getActiveAllele() |
IAllele |
getInactiveAllele() |
IAllele |
getPrimaryAllele() |
IAllele |
getSecondaryAllele() |
static IChromosome |
inheritChromosome(java.util.Random rand,
IChromosome parent1,
IChromosome parent2) |
java.lang.String |
toString() |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public Chromosome(IAllele allele)
public static Chromosome create(@Nullable java.lang.String primarySpeciesUid, @Nullable java.lang.String secondarySpeciesUid, IChromosomeType chromosomeType, net.minecraft.nbt.NBTTagCompound nbt)
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablepublic IAllele getPrimaryAllele()
getPrimaryAllele in interface IChromosomepublic IAllele getSecondaryAllele()
getSecondaryAllele in interface IChromosomepublic IAllele getActiveAllele()
getActiveAllele in interface IChromosomepublic IAllele getInactiveAllele()
getInactiveAllele in interface IChromosomepublic static IChromosome inheritChromosome(java.util.Random rand, IChromosome parent1, IChromosome parent2)
public java.lang.String toString()
toString in class java.lang.Object