Class StructurePrepareAddOwnerEvent

java.lang.Object
org.bukkit.event.Event
nl.pim16aap2.animatedarchitecture.spigot.core.events.AnimatedArchitectureSpigotEvent
nl.pim16aap2.animatedarchitecture.spigot.core.events.StructurePrepareAddOwnerEvent
All Implemented Interfaces:
IAnimatedArchitectureEvent, ICancellableAnimatedArchitectureEvent, IStructureEvent, IStructurePrepareAddOwnerEvent

public class StructurePrepareAddOwnerEvent extends AnimatedArchitectureSpigotEvent implements IStructurePrepareAddOwnerEvent
Represents the event where a new owner is added to a structure.
  • Field Details

    • structure

      protected final Structure structure
      The structure that is targeted by the event.
    • responsible

      protected final Optional<IPlayer> responsible
      The player responsible for the event.

      If the event is caused by a player, such as a player deleting a structure, the responsible player will be set.

      If the event is not caused by a player, this will be empty. This can be the case when a structure is toggled by a redstone signal.

  • Constructor Details

    • StructurePrepareAddOwnerEvent

      public StructurePrepareAddOwnerEvent(Structure structure, @Nullable @Nullable IPlayer responsible, StructureOwner newStructureOwner)
  • Method Details