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
Handles all the basic and common methods for updated based events.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAuctionUpdateEvent
(T updatedValue, T oldValue) AuctionUpdateEvent
(T updatedValue, T oldValue, boolean isAsync) -
Method Summary
Methods inherited from class com.olziedev.playerauctions.api.events.AuctionEvent
acceptCallback, callEvent, getPlayerAuctionsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallback
Methods inherited from class org.bukkit.event.Event
getEventName, getHandlers, isAsynchronous
-
Constructor Details
-
AuctionUpdateEvent
- 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
- 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
- Returns:
- The value that has changed for this event.
-
getOldValue
- Returns:
- The old value that is going to be changed to the new value.
-