Interface UnpairedChromosomesToBreedSolver

All Known Subinterfaces:
IPlatformHelper
All Known Implementing Classes:
FabricPlatformHelper

public interface UnpairedChromosomesToBreedSolver
  • Method Details

    • solveUnpairedChromosomesToBreed

      boolean solveUnpairedChromosomesToBreed(net.minecraft.world.entity.EntityType<?> entityType, Collection<ChromosomeInstance> chromosomeInstances, net.minecraft.util.RandomSource random, com.google.common.collect.ImmutableCollection.Builder<ChromosomeInstance> builder)
      Parameters:
      entityType - the entity type with unpaired chromosomes
      chromosomeInstances - the chromosome instances of this entity
      random - random source
      builder - chromosomes builder, do NOT modify it until you decide to return true
      Returns:
      true if we just solved this situation. false otherwise. If false, the builder should NOT be modified.