Enum Class AnnoyingAPILibrary

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

public enum AnnoyingAPILibrary extends Enum<AnnoyingAPILibrary> implements AnnoyingLibrary
  • Enum Constant Details

  • Field Details

    • librarySupplier

      @NotNull public final @NotNull Supplier<net.byteflux.libby.Library.Builder> librarySupplier
    • relocations

      @Nullable public final @Nullable Function<AnnoyingPlugin,Collection<net.byteflux.libby.relocation.Relocation>> relocations
    • requiredLibraries

      @Nullable public final @Nullable Collection<AnnoyingLibrary> requiredLibraries
  • Method Details

    • values

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

      @Nullable public @Nullable 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
    • getRequiredLibraries

      @Nullable public @Nullable Collection<AnnoyingLibrary> getRequiredLibraries()
      Description copied from interface: AnnoyingLibrary
      The libraries that are required to load this library
      Specified by:
      getRequiredLibraries in interface AnnoyingLibrary
      Returns:
      a list of libraries that are required to load this library