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 Type
    Method
    Description
    default net.minecraft.network.chat.MutableComponent
    getDisplayName(A allele)
     
    The translation key of this allele, for use in Component.translatable(String).
    net.minecraft.resources.ResourceLocation
    id()
     
     
  • Method Details

    • id

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

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

      default net.minecraft.network.chat.MutableComponent getDisplayName(A allele)
    • valueClass

      Class<?> valueClass()