Package forestry.api.plugin
Interface ISpeciesTypeBuilder
public interface ISpeciesTypeBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddResearchMaterials(Consumer<it.unimi.dsi.fastutil.objects.Reference2FloatMap<net.minecraft.world.item.Item>> materials) Allows adding new Escritoire research materials or removing the default ones.addStages(ILifeStage... stages) Adds possible life stages to this species type.voidbuildResearchMaterials(it.unimi.dsi.fastutil.objects.Reference2FloatMap<net.minecraft.world.item.Item> materialMap) setDefaultStage(ILifeStage stage) Sets the default life stage of this species type.setKaryotype(Consumer<IKaryotypeBuilder> karyotype) Defines the default karyotype for members of this species type.
-
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
Adds possible life stages to this species type. Make sure to also callsetDefaultStage(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
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)
-