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 Details

    • id

      net.minecraft.resources.ResourceLocation id()
      Returns:
      Unique ID for this chromosome.
    • getTranslationKey

      String getTranslationKey(A allele)
      Returns:
      The translation key of this allele, for use in Component.translatable(java.lang.String).
    • getDisplayName

      default net.minecraft.network.chat.MutableComponent getDisplayName(A allele)
      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()