Klasse RentalExtendingEvent

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

public final class RentalExtendingEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Fired synchronously before an extension is reserved or its payment is attempted.
  • Konstruktordetails

    • RentalExtendingEvent

      public RentalExtendingEvent(RentalContract contract, int periods, BigDecimal total, OperationCause cause)
      Creates the cancellable extension proposal.
      Parameter:
      contract - current active contract
      periods - proposed additional periods
      total - proposed total charge
      cause - initiating subsystem
  • Methodendetails

    • contract

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

      public int periods()
      Returns the requested period count.
      Gibt zurück:
      additional periods
    • total

      public BigDecimal total()
      Returns the proposed charge.
      Gibt zurück:
      total charge
    • 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