Class CitizenColonyHandler

java.lang.Object
com.minecolonies.core.entity.citizen.citizenhandlers.CitizenColonyHandler
All Implemented Interfaces:
ICitizenColonyHandler
Direct Known Subclasses:
VisitorColonyHandler

public class CitizenColonyHandler extends Object implements ICitizenColonyHandler
Handles all colony related methods for the citizen.
  • Field Details

    • citizen

      protected final AbstractEntityCitizen citizen
      The citizen assigned to this manager.
    • colonyId

      protected int colonyId
      It's colony id.
    • colony

      @Nullable protected @Nullable IColony colony
      The colony reference.
    • registered

      protected boolean registered
      Whether the entity is registered to the colony yet.
  • Constructor Details

    • CitizenColonyHandler

      public CitizenColonyHandler(AbstractEntityCitizen citizen)
      Constructor for the experience handler.
      Parameters:
      citizen - the citizen owning the handler.
  • Method Details