Package forestry.api.genetics
Interface IMutationManager<S extends ISpecies<?>>
- Type Parameters:
S- The type of species these mutations concern.
public interface IMutationManager<S extends ISpecies<?>>
Keeps track of mutations involving members of a certain species type.
-
Method Summary
Modifier and TypeMethodDescriptiongetCombinations(S firstParent, S secondParent) getCombinationsShuffled(S firstParent, S secondParent, net.minecraft.util.RandomSource rand) getMutationsFrom(S species) getMutationsInto(S species)
-
Method Details
-
getMutationsFrom
- Returns:
- An immutable list of mutations that this species is one of the parents for.
-
getMutationsInto
- Returns:
- An immutable list of mutations that this species is the result of.
-
getCombinations
- Returns:
- An immutable list of mutations between these two parents.
-
getCombinationsShuffled
List<? extends IMutation<S>> getCombinationsShuffled(S firstParent, S secondParent, net.minecraft.util.RandomSource rand) - Returns:
- A mutable, shuffled list of all mutations within the species type of this mutation manager.
-
getAllMutations
- Returns:
- An immutable list of all mutations within the species type of this mutation manager.
-