Enum Class PackOverlay

java.lang.Object
java.lang.Enum<PackOverlay>
kr.toxicity.model.api.pack.PackOverlay
All Implemented Interfaces:
Serializable, Comparable<PackOverlay>, Constable

public enum PackOverlay extends Enum<PackOverlay>
  • Enum Constant Details

    • DEFAULT

      public static final PackOverlay DEFAULT
      Default
    • LEGACY

      public static final PackOverlay LEGACY
      Legacy
    • MODERN

      public static final PackOverlay MODERN
      Modern
  • Method Details

    • values

      public static PackOverlay[] 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 PackOverlay 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
    • path

      @NotNull public @NotNull PackPath path(@NotNull @NotNull String namespace)
      Gets path
      Parameters:
      namespace - namespace
      Returns:
      path
    • range

      @NotNull public @NotNull Optional<PackMeta.VersionRange> range()
      Gets version range
      Returns:
      optional version range
    • test

      public boolean test()
      Tests this overlay
      Returns:
      test value