Klasse RegionRentingEvent

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

public final class RegionRentingEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Fired synchronously before a rental listing is reserved or renter funds are withdrawn.
  • Konstruktordetails

    • RegionRentingEvent

      public RegionRentingEvent(EstateRegion region, RentalContract proposedContract, OperationCause cause)
      Creates the cancellable pre-rental event.
      Parameter:
      region - immutable available parcel snapshot
      proposedContract - proposed contract not yet persisted
      cause - initiating subsystem
  • Methodendetails

    • region

      public EstateRegion region()
      Returns the available parcel snapshot.
      Gibt zurück:
      immutable parcel
    • proposedContract

      public RentalContract proposedContract()
      Returns the proposed contract.
      Gibt zurück:
      immutable pending contract proposal
    • cause

      public OperationCause cause()
      Returns the operation origin.
      Gibt zurück:
      initiating cause
    • 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