Search in sources :

Example 1 with IAlleleRegistry

use of forestry.api.genetics.IAlleleRegistry in project ForestryMC by ForestryMC.

the class EventHandlerCore method syncBreedingTrackers.

private static void syncBreedingTrackers(EntityPlayer player) {
    IAlleleRegistry alleleRegistry = AlleleManager.alleleRegistry;
    Collection<ISpeciesRoot> speciesRoots = alleleRegistry.getSpeciesRoot().values();
    for (ISpeciesRoot speciesRoot : speciesRoots) {
        IBreedingTracker breedingTracker = speciesRoot.getBreedingTracker(player.getEntityWorld(), player.getGameProfile());
        breedingTracker.synchToPlayer(player);
    }
}
Also used : ISpeciesRoot(forestry.api.genetics.ISpeciesRoot) IAlleleRegistry(forestry.api.genetics.IAlleleRegistry) IBreedingTracker(forestry.api.genetics.IBreedingTracker)

Aggregations

IAlleleRegistry (forestry.api.genetics.IAlleleRegistry)1 IBreedingTracker (forestry.api.genetics.IBreedingTracker)1 ISpeciesRoot (forestry.api.genetics.ISpeciesRoot)1