Interface UnpairedChromosomesToBreedSolver
- All Known Subinterfaces:
IPlatformHelper
- All Known Implementing Classes:
FabricPlatformHelper
public interface UnpairedChromosomesToBreedSolver
-
Method Summary
Modifier and TypeMethodDescriptionbooleansolveUnpairedChromosomesToBreed(net.minecraft.world.entity.EntityType<?> entityType, Collection<ChromosomeInstance> chromosomeInstances, net.minecraft.util.RandomSource random, com.google.common.collect.ImmutableCollection.Builder<ChromosomeInstance> builder)
-
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 chromosomeschromosomeInstances- the chromosome instances of this entityrandom- random sourcebuilder- chromosomes builder, do NOT modify it until you decide to returntrue- Returns:
trueif we just solved this situation.falseotherwise. If false, the builder should NOT be modified.
-