Interface IStructureEvent

All Superinterfaces:
IAnimatedArchitectureEvent
All Known Subinterfaces:
IStructureCreatedEvent, IStructurePrepareCreateEvent, IStructurePrepareDeleteEvent, IStructurePrepareLockChangeEvent, IStructurePrepareRemoveOwnerEvent
All Known Implementing Classes:
StructureCreatedEvent, StructurePrepareAddOwnerEvent, StructurePrepareCreateEvent, StructurePrepareDeleteEvent, StructurePrepareLockChangeEvent, StructurePrepareRemoveOwnerEvent

public interface IStructureEvent extends IAnimatedArchitectureEvent
Represents the event where a structure was created.
  • Method Details

    • getStructure

      Structure getStructure()
      Gets the Structure that was created.
      Returns:
      The Structure that will be created.
    • getResponsible

      Optional<IPlayer> getResponsible()
      Gets the IPlayer that was responsible for the creation this structure.
      Returns:
      The IPlayer that 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.