Enum Class DependencyType

java.lang.Object
java.lang.Enum<DependencyType>
eu.hexagonmc.spigot.annotation.meta.DependencyType
All Implemented Interfaces:
Serializable, Comparable<DependencyType>, Constable

public enum DependencyType extends Enum<DependencyType>
Represents the type of an dependency.

A dependency with type DEPEND means that it is required for the current plugin to load.

A dependency with type SOFTDEPEND means that the current plugin needs it for fill functionality.

A dependency with type LOADBEFORE means that the dependency needs your plugin to be loaded before it loads.
See Also:
  • Enum Constant Details

    • DEPEND

      public static final DependencyType DEPEND
      This dependency is required by the current plugin.
    • SOFTDEPEND

      public static final DependencyType SOFTDEPEND
      This dependency is optionally for the current plugin.
    • LOADBEFORE

      public static final DependencyType LOADBEFORE
      This dependency needs the current plugin to be loaded before it loads.
  • Method Details

    • values

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