Enum Class RuntimeLibrary

java.lang.Object
java.lang.Enum<RuntimeLibrary>
xyz.srnyx.annoyingapi.library.RuntimeLibrary
All Implemented Interfaces:
Serializable, Comparable<RuntimeLibrary>, Constable, AnnoyingLibrary

public enum RuntimeLibrary extends Enum<RuntimeLibrary> implements AnnoyingLibrary
All possible runtime libraries that Annoying API may download (depending on feature use)
  • Enum Constant Details

    • ITEM_NBT_API

      public static final RuntimeLibrary ITEM_NBT_API
      de.tr7zw:item-nbt-api
    • BSTATS_BASE

      public static final RuntimeLibrary BSTATS_BASE
      org.bstats:bstats-base
    • BSTATS_BUKKIT

      public static final RuntimeLibrary BSTATS_BUKKIT
      org.bstats:bstats-bukkit
    • JAVASSIST

      public static final RuntimeLibrary JAVASSIST
      org.javassist:javassist
    • REFLECTIONS

      public static final RuntimeLibrary REFLECTIONS
      org.reflections:reflections
    • H2

      public static final RuntimeLibrary H2
      com.h2database:h2
    • POSTGRESQL

      public static final RuntimeLibrary POSTGRESQL
      org.postgresql:postgresql
  • Field Details

  • Method Details

    • values

      public static RuntimeLibrary[] 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 RuntimeLibrary 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
    • getLibrarySupplier

      @NotNull public @NotNull Supplier<net.byteflux.libby.Library.Builder> getLibrarySupplier()
      Description copied from interface: AnnoyingLibrary
      The supplier of the builder to create the library with
      Specified by:
      getLibrarySupplier in interface AnnoyingLibrary
      Returns:
      a supplier that gives a new builder to create the library with
    • getRelocations

      @NotNull public @NotNull Function<AnnoyingPlugin,Collection<net.byteflux.libby.relocation.Relocation>> getRelocations()
      Description copied from interface: AnnoyingLibrary
      The relocations to apply to the library
      Specified by:
      getRelocations in interface AnnoyingLibrary
      Returns:
      a function that gives a collection of relocations to apply to the library