Class AbstractColonyModEvent
java.lang.Object
com.minecolonies.api.eventbus.events.AbstractModEvent
com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
- All Implemented Interfaces:
IModEvent
- Direct Known Subclasses:
AbstractBuildingModEvent,AbstractCitizenModEvent,CitizenRemovedModEvent,ColonyCreatedModEvent,ColonyDeletedModEvent,ColonyFlagChangedModEvent,ColonyNameChangedModEvent,ColonyPlayerRankChangedModEvent,ColonyTeamColorChangedModEvent,ColonyViewUpdatedModEvent,PlayerEnteringModEvent,PlayerLeavingModEvent
Any colony related event, provides the target colony the event occurred in.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractColonyModEvent(@NotNull IColony colony) Constructs a colony-based event. -
Method Summary
Methods inherited from class com.minecolonies.api.eventbus.events.AbstractModEvent
getEventId
-
Constructor Details
-
AbstractColonyModEvent
Constructs a colony-based event.- Parameters:
colony- The colony related to the event.
-
-
Method Details
-
getColony
Gets the colony related to the event.
-