Enum CosmeticItemBehaviour

java.lang.Object
java.lang.Enum<CosmeticItemBehaviour>
de.marcely.bedwars.api.cosmetics.shop.CosmeticItemBehaviour
All Implemented Interfaces:
Serializable, Comparable<CosmeticItemBehaviour>, java.lang.constant.Constable

public enum CosmeticItemBehaviour extends Enum<CosmeticItemBehaviour>
Represents the activation behavior of a cosmetic item.
See Also:
  • Enum Constant Details Link icon

    • SET_ACTIVE Link icon

      public static final CosmeticItemBehaviour SET_ACTIVE
      Sets the item to the new active one and executes the item as expected.
    • UNSET_ACTIVE Link icon

      public static final CosmeticItemBehaviour UNSET_ACTIVE
      Unsets the current active one.
    • PLAY_RANDOM Link icon

      public static final CosmeticItemBehaviour PLAY_RANDOM
      Executes a random available one.
  • Method Details Link icon

    • values Link icon

      public static CosmeticItemBehaviour[] 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 Link icon

      public static CosmeticItemBehaviour 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
    • byName Link icon

      @Nullable public static @Nullable CosmeticItemBehaviour byName(String name)
      Gets the behavior by its Enum.name() while being case-insensitive.
      Parameters:
      name - The name to match
      Returns:
      The behavior or null if none was found