Class AuctionUpdateEvent<T>

java.lang.Object
org.bukkit.event.Event
com.olziedev.playerauctions.api.events.AuctionEvent
com.olziedev.playerauctions.api.events.update.AuctionUpdateEvent<T>
Type Parameters:
T - The object that has been updated in the event.
All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
AuctionExpireUpdateEvent, AuctionPlayerUpdateEvent

public abstract class AuctionUpdateEvent<T> extends AuctionEvent
Handles all the basic and common methods for updated based events.
  • Constructor Details

    • AuctionUpdateEvent

      public AuctionUpdateEvent(T updatedValue, T oldValue)
      Parameters:
      updatedValue - The value that has changed for this event.
      oldValue - The old value that is going to be changed to the new value.
    • AuctionUpdateEvent

      public AuctionUpdateEvent(T updatedValue, T oldValue, boolean isAsync)
      Parameters:
      updatedValue - The value that has changed for this event.
      oldValue - The old value that is going to be changed to the new value.
      isAsync - If the event is triggered as async.
  • Method Details

    • getUpdatedValue

      public T getUpdatedValue()
      Returns:
      The value that has changed for this event.
    • getOldValue

      public T getOldValue()
      Returns:
      The old value that is going to be changed to the new value.