Klasse RentalEndingEvent

java.lang.Object
org.bukkit.event.Event
de.delinkedde.areashopreborn.event.RentalEndingEvent
Alle implementierten Schnittstellen:
org.bukkit.event.Cancellable

public final class RentalEndingEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Fired synchronously before an active rental contract is ended.
  • Konstruktordetails

    • RentalEndingEvent

      public RentalEndingEvent(EstateRegion region, RentalContract contract, RentalEndingEvent.Reason reason, OperationCause cause)
      Creates the cancellable rental-ending event.
      Parameter:
      region - currently rented parcel
      contract - active contract
      reason - requested terminal reason
      cause - initiating subsystem
  • Methodendetails

    • region

      public EstateRegion region()
      Returns the rented region.
      Gibt zurück:
      immutable region snapshot
    • contract

      public RentalContract contract()
      Returns the active contract.
      Gibt zurück:
      immutable contract
    • reason

      public RentalEndingEvent.Reason reason()
      Returns the terminal reason.
      Gibt zurück:
      requested reason
    • cause

      public OperationCause cause()
      Returns the origin.
      Gibt zurück:
      initiating subsystem
    • isCancelled

      public boolean isCancelled()
      Angegeben von:
      isCancelled in Schnittstelle org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Angegeben von:
      setCancelled in Schnittstelle org.bukkit.event.Cancellable
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Angegeben von:
      getHandlers in Klasse org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns Bukkit's static handler registry.
      Gibt zurück:
      handler list