Class CitizenAddedModEvent
java.lang.Object
com.minecolonies.api.eventbus.events.AbstractModEvent
com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
com.minecolonies.api.eventbus.events.colony.citizens.AbstractCitizenModEvent
com.minecolonies.api.eventbus.events.colony.citizens.CitizenAddedModEvent
- All Implemented Interfaces:
IModEvent
Event for when a citizen was added to the colony.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the citizen came into the colony. -
Constructor Summary
ConstructorsConstructorDescriptionCitizenAddedModEvent(ICitizenData citizen, CitizenAddedModEvent.CitizenAddedSource source) Citizen added event. -
Method Summary
Modifier and TypeMethodDescriptionGet the way the citizen came into the colony.Methods inherited from class com.minecolonies.api.eventbus.events.colony.citizens.AbstractCitizenModEvent
getCitizenMethods inherited from class com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
getColonyMethods inherited from class com.minecolonies.api.eventbus.events.AbstractModEvent
getEventId
-
Constructor Details
-
CitizenAddedModEvent
Citizen added event.- Parameters:
citizen- the citizen related to the event.source- the way the citizen came into the colony.
-
-
Method Details
-
getSource
Get the way the citizen came into the colony.- Returns:
- the enum value.
-