Class CLFabricEvents
java.lang.Object
com.hexagram2021.chromosomelib.fabric.event.CLFabricEvents
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<AfterAssigningTraitSolver>Called when a trait is assigned to an entity.static final net.fabricmc.fabric.api.event.Event<UnpairedChromosomesToBreedSolver>Called when two entities is breeding, finding out that one of them has unpaired chromosomes. -
Method Summary
-
Field Details
-
UNPAIRED_CHROMOSOMES_TO_BREED_SOLVER
public static final net.fabricmc.fabric.api.event.Event<UnpairedChromosomesToBreedSolver> UNPAIRED_CHROMOSOMES_TO_BREED_SOLVERCalled when two entities is breeding, finding out that one of them has unpaired chromosomes. Do NOT modify the builder if you returnfalse.- See Also:
-
Breeders.breed(net.minecraft.world.entity.EntityType<?>, net.minecraft.world.entity.EntityType<?>, java.util.Collection<com.hexagram2021.chromosomelib.common.chromosome.ChromosomeInstance>, java.util.Collection<com.hexagram2021.chromosomelib.common.chromosome.ChromosomeInstance>, net.minecraft.util.RandomSource)UnpairedChromosomesToBreedSolver
-
AFTER_ASSIGNING_TRAIT_SOLVER
public static final net.fabricmc.fabric.api.event.Event<AfterAssigningTraitSolver> AFTER_ASSIGNING_TRAIT_SOLVERCalled when a trait is assigned to an entity.
-