Class VisitorColonyHandler
java.lang.Object
com.minecolonies.core.entity.citizen.citizenhandlers.CitizenColonyHandler
com.minecolonies.core.entity.visitor.VisitorColonyHandler
- All Implemented Interfaces:
ICitizenColonyHandler
Colony handler for visitors
-
Field Summary
Fields inherited from class com.minecolonies.core.entity.citizen.citizenhandlers.CitizenColonyHandler
citizen, colony, colonyId, registered -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the experience handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidActions when the entity is removed.voidregisterWithColony(int colonyID, int citizenID) Server-specific update for the EntityCitizen.Methods inherited from class com.minecolonies.core.entity.citizen.citizenhandlers.CitizenColonyHandler
getColony, getColonyId, getColonyOrRegister, getHomeBuilding, getWorkBuilding, onSyncDataUpdate, registered, setColonyId, updateColonyClient
-
Constructor Details
-
VisitorColonyHandler
Constructor for the experience handler.- Parameters:
citizen- the citizen owning the handler.
-
-
Method Details
-
registerWithColony
public void registerWithColony(int colonyID, int citizenID) Description copied from class:CitizenColonyHandlerServer-specific update for the EntityCitizen.- Specified by:
registerWithColonyin interfaceICitizenColonyHandler- Overrides:
registerWithColonyin classCitizenColonyHandler- Parameters:
colonyID- the id of the colony.citizenID- the id of the citizen.
-
onCitizenRemoved
public void onCitizenRemoved()Description copied from interface:ICitizenColonyHandlerActions when the entity is removed.- Specified by:
onCitizenRemovedin interfaceICitizenColonyHandler- Overrides:
onCitizenRemovedin classCitizenColonyHandler
-