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 Details

    • getMutationsFrom

      List<IMutation<S>> getMutationsFrom(S species)
      Returns:
      An immutable list of mutations that this species is one of the parents for.
    • getMutationsInto

      List<IMutation<S>> getMutationsInto(S species)
      Returns:
      An immutable list of mutations that this species is the result of.
    • getCombinations

      List<IMutation<S>> getCombinations(S firstParent, S secondParent)
      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

      List<IMutation<S>> getAllMutations()
      Returns:
      An immutable list of all mutations within the species type of this mutation manager.