Enum RecentAuctionType

java.lang.Object
java.lang.Enum<RecentAuctionType>
com.olziedev.playerauctions.api.auction.recent.RecentAuctionType
All Implemented Interfaces:
Serializable, Comparable<RecentAuctionType>, java.lang.constant.Constable

public enum RecentAuctionType extends Enum<RecentAuctionType>
  • Enum Constant Details

    • BOUGHT

      public static final RecentAuctionType BOUGHT
      This constant is for recent auctions that have been bought.
    • SOLD

      public static final RecentAuctionType SOLD
      This constant is for recent auctions that have been successfully sold.
    • AUCTIONED

      public static final RecentAuctionType AUCTIONED
      This constant is for recent auctions that have just been auctioned.
  • Method Details

    • values

      public static RecentAuctionType[] 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

      public static RecentAuctionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName(FileConfiguration configuration)
      Parameters:
      configuration - The configuration object to grab the appropriate message from.
      Returns:
      The custom name of this auction type from the configuration file.