Enum Class SoulHarvesterGainType

java.lang.Object
java.lang.Enum<SoulHarvesterGainType>
valorless.rarespawns.enums.SoulHarvesterGainType
All Implemented Interfaces:
Serializable, Comparable<SoulHarvesterGainType>, Constable

public enum SoulHarvesterGainType extends Enum<SoulHarvesterGainType>
Enumeration of different types of Soul Harvester gain methods.

Defines the various categories through which souls can be gained, such as killing, fishing, mining, defence, and building.

  • Enum Constant Details

  • Method Details

    • values

      public static SoulHarvesterGainType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SoulHarvesterGainType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static SoulHarvesterGainType fromString(String s)
      Converts a string representation to the corresponding SoulHarvesterGainType enum value.

      The comparison is case-insensitive. If the input string does not match any enum value, the method returns null.

      Parameters:
      s - the string representation of the gain type
      Returns:
      the corresponding SoulHarvesterGainType enum value, or null if no match is found