Enum PlayerAuctionRemoveEvent.Cause
java.lang.Object
java.lang.Enum<PlayerAuctionRemoveEvent.Cause>
com.olziedev.playerauctions.api.events.auction.PlayerAuctionRemoveEvent.Cause
- All Implemented Interfaces:
Serializable
,Comparable<PlayerAuctionRemoveEvent.Cause>
,java.lang.constant.Constable
- Enclosing class:
- PlayerAuctionRemoveEvent
List of all possible causes that will trigger the auction removal.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis constant is used when a player manually removes the auction from the collect command.This constant is used when a player manually removes the auction from the auction menu.This constant is used when a player manually removes the auction from the myauctions menu.This constant is used when the auction is expired and the purge timer has been triggered.This constant is used whenAuction.buy(APlayer, long, Runnable)
has been called. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static PlayerAuctionRemoveEvent.Cause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SOLD
This constant is used whenAuction.buy(APlayer, long, Runnable)
has been called. -
PURGED
This constant is used when the auction is expired and the purge timer has been triggered. -
EXPIRED_AUCTIONS_MENU
This constant is used when a player manually removes the auction from the auction menu. -
MYAUCTIONS_MENU
This constant is used when a player manually removes the auction from the myauctions menu. -
COLLECT_COMMAND
This constant is used when a player manually removes the auction from the collect command.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-