Enum Class DescriptionGeneratorType

java.lang.Object
java.lang.Enum<DescriptionGeneratorType>
com.vouncherstudios.strawberry.minecraft.plugin.generator.DescriptionGeneratorType
All Implemented Interfaces:
Serializable, Comparable<DescriptionGeneratorType>, Constable

public enum DescriptionGeneratorType extends Enum<DescriptionGeneratorType>
The implemented generators type.
  • Enum Constant Details

  • Method Details

    • values

      public static DescriptionGeneratorType[] 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 DescriptionGeneratorType 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
    • getGenerator

      public abstract DescriptionGenerator getGenerator(@Nonnull StrawberryExtension extension)
    • isAvailable

      public abstract boolean isAvailable(@Nonnull StrawberryExtension extension)
    • fromExt

      @Nonnull public static Set<DescriptionGenerator> fromExt(@Nonnull StrawberryExtension extension)
      Returns a set of generator types based on the extension.
      Parameters:
      extension - the minecraft extension
      Returns:
      the set of generator types