Class ReproductionManager
java.lang.Object
com.minecolonies.core.colony.managers.ReproductionManager
- All Implemented Interfaces:
IReproductionManager
Repo manager to spawn children.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonColonyTick(@NotNull IColony colony) On colony tick operation.voidTry to spawn a new citizen as child.
-
Constructor Details
-
ReproductionManager
Create a new reproduction manager.- Parameters:
colony- the colony to spawn kids for.
-
-
Method Details
-
onColonyTick
Description copied from interface:IReproductionManagerOn colony tick operation.- Specified by:
onColonyTickin interfaceIReproductionManager- Parameters:
colony- the colony ticking.
-
trySpawnChild
public void trySpawnChild()Try to spawn a new citizen as child. Mom / dad entities are required and chosen randomly in this hut. Childs inherit stats from their parents, avergaged +-2 Childs get assigned to a free housing slot in the colony to be raised there, if the house has an adult living there the child takes its name and gets raised by it.
-