Interface ISpeciesTypeBuilder


public interface ISpeciesTypeBuilder
  • Method Details

    • setKaryotype

      Defines the default karyotype for members of this species type. Although the default genome can be customized on a per-species basis, all members of the same species type have the same set of chromosomes. Multiple calls to this method will be chained and can override results of previous calls.
    • addStages

      ISpeciesTypeBuilder addStages(ILifeStage... stages)
      Adds possible life stages to this species type. Make sure to also call setDefaultStage(forestry.api.genetics.ILifeStage).
    • addResearchMaterials

      ISpeciesTypeBuilder addResearchMaterials(Consumer<it.unimi.dsi.fastutil.objects.Reference2FloatMap<net.minecraft.world.item.Item>> materials)
      Allows adding new Escritoire research materials or removing the default ones.
    • setDefaultStage

      ISpeciesTypeBuilder setDefaultStage(ILifeStage stage)
      Sets the default life stage of this species type.
      Parameters:
      stage - The default stage for use in menus.
    • getDefaultStage

      ILifeStage getDefaultStage()
    • getStages

      List<ILifeStage> getStages()
    • buildResearchMaterials

      void buildResearchMaterials(it.unimi.dsi.fastutil.objects.Reference2FloatMap<net.minecraft.world.item.Item> materialMap)