Interface IStructureEvent
- All Superinterfaces:
IAnimatedArchitectureEvent
- All Known Subinterfaces:
IStructureCreatedEvent,IStructurePrepareCreateEvent,IStructurePrepareDeleteEvent,IStructurePrepareLockChangeEvent,IStructurePrepareRemoveOwnerEvent
- All Known Implementing Classes:
StructureCreatedEvent,StructurePrepareAddOwnerEvent,StructurePrepareCreateEvent,StructurePrepareDeleteEvent,StructurePrepareLockChangeEvent,StructurePrepareRemoveOwnerEvent
Represents the event where a structure was created.
-
Method Summary
Methods inherited from interface nl.pim16aap2.animatedarchitecture.core.events.IAnimatedArchitectureEvent
getEventName, isAsynchronous
-
Method Details
-
getStructure
Structure getStructure()Gets theStructurethat was created.- Returns:
- The
Structurethat will be created.
-
getResponsible
Gets theIPlayerthat was responsible for the creation this structure.- Returns:
- The
IPlayerthat created if the creation was requested by a player. If it was requested by something else (e.g. the server), an empty optional is returned.
-