Package forestry.api.genetics.alleles
Interface IChromosome<A extends IAllele>
- All Known Subinterfaces:
IBooleanChromosome,IFloatChromosome,IIntegerChromosome,IRegistryChromosome<V>,IValueChromosome<V>
public interface IChromosome<A extends IAllele>
In Forestry, a chromosome is a key in the genome that maps to different alleles.
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.network.chat.MutableComponentdefault net.minecraft.network.chat.MutableComponentgetDisplayName(A allele) getTranslationKey(A allele) net.minecraft.resources.ResourceLocationid()Class<?>
-
Method Details
-
id
net.minecraft.resources.ResourceLocation id()- Returns:
- Unique ID for this chromosome.
-
getTranslationKey
- Returns:
- The translation key of this allele, for use in
Component.translatable(java.lang.String).
-
getDisplayName
- Returns:
- The display name for the allele when representing this chromosome. (ex. Shortest, Largest, Yes, No)
-
getChromosomeTranslationKey
String getChromosomeTranslationKey()- Returns:
- The translation key for the name of this chromosome.
- Since:
- 2.1.1
-
getChromosomeDisplayName
default net.minecraft.network.chat.MutableComponent getChromosomeDisplayName()- Returns:
- The human-readable name of this chromosome. (ex. Lifespan, Fertility, Girth)
- Since:
- 2.1.1
-
valueClass
Class<?> valueClass()
-