Class ReproductionManager

java.lang.Object
com.minecolonies.core.colony.managers.ReproductionManager
All Implemented Interfaces:
IReproductionManager

public class ReproductionManager extends Object implements IReproductionManager
Repo manager to spawn children.
  • Constructor Details

    • ReproductionManager

      public ReproductionManager(Colony colony)
      Create a new reproduction manager.
      Parameters:
      colony - the colony to spawn kids for.
  • Method Details

    • onColonyTick

      public void onColonyTick(@NotNull @NotNull IColony colony)
      Description copied from interface: IReproductionManager
      On colony tick operation.
      Specified by:
      onColonyTick in interface IReproductionManager
      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.