Enum Class PowerItemType

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

public enum PowerItemType extends Enum<PowerItemType>
Defines the available Power Item types used by the RareSpawns API. This enum is used for categorizing item behavior by a simple, named type.
  • Enum Constant Details

    • NULL

      public static final PowerItemType NULL
      Unspecified or no-op type.
    • BREAKER

      public static final PowerItemType BREAKER
      Breaker-type power item.
    • REDSTONE

      public static final PowerItemType REDSTONE
      Redstone-related power item.
    • TROWEL

      public static final PowerItemType TROWEL
      Trowel-type power item.
  • Method Details

    • values

      public static PowerItemType[] 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 PowerItemType 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
    • get

      public static PowerItemType get(String type)
      Returns the PowerItemType matching the given name (case-insensitive).
      Parameters:
      type - the name of the power item type to resolve
      Returns:
      the matching PowerItemType constant
      Throws:
      IllegalArgumentException - if the provided name does not match any constant