Class AbstractBuildingModEvent
java.lang.Object
com.minecolonies.api.eventbus.events.AbstractModEvent
com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
com.minecolonies.api.eventbus.events.colony.buildings.AbstractBuildingModEvent
- All Implemented Interfaces:
IModEvent
- Direct Known Subclasses:
BuildingAddedModEvent,BuildingConstructionModEvent,BuildingRemovedModEvent
Abstract event for building related things.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBuildingModEvent(IBuilding building) Constructs a building-based event. -
Method Summary
Methods inherited from class com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
getColonyMethods inherited from class com.minecolonies.api.eventbus.events.AbstractModEvent
getEventId
-
Field Details
-
building
The building related to the event.
-
-
Constructor Details
-
AbstractBuildingModEvent
Constructs a building-based event.- Parameters:
building- the building related to the event.
-
-
Method Details
-
getBuilding
Get the building related to the event.- Returns:
- the building instance.
-