Class StructurePrepareLockChangeEvent

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

public class StructurePrepareLockChangeEvent extends AnimatedArchitectureSpigotEvent implements IStructurePrepareLockChangeEvent
Represents the event where a structure will be (un)locked.
  • 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

    • StructurePrepareLockChangeEvent

      public StructurePrepareLockChangeEvent(Structure structure, @Nullable IPlayer responsible, boolean newLockStatus)
  • Method Details