Package xyz.srnyx.annoyingapi.library
Enum RuntimeLibrary
- java.lang.Object
-
- java.lang.Enum<RuntimeLibrary>
-
- xyz.srnyx.annoyingapi.library.RuntimeLibrary
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RuntimeLibrary>,AnnoyingLibrary
public enum RuntimeLibrary extends java.lang.Enum<RuntimeLibrary> implements AnnoyingLibrary
All possible runtime libraries that Annoying API may download (depending on feature use)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BSTATS_BASEorg.bstats:bstats-baseBSTATS_BUKKITorg.bstats:bstats-bukkitH2com.h2database:h2ITEM_NBT_APIde.tr7zw:item-nbt-apiJAVASSISTorg.javassist:javassistPOSTGRESQLorg.postgresql:postgresqlREFLECTIONSorg.reflections:reflections
-
Field Summary
Fields Modifier and Type Field Description @NotNull java.util.function.Supplier<net.byteflux.libby.Library.Builder>librarySupplier@NotNull java.util.function.Function<AnnoyingPlugin,java.util.Collection<net.byteflux.libby.relocation.Relocation>>relocations
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.function.Supplier<net.byteflux.libby.Library.Builder>getLibrarySupplier()The supplier of the builder to create the library with@NotNull java.util.function.Function<AnnoyingPlugin,java.util.Collection<net.byteflux.libby.relocation.Relocation>>getRelocations()The relocations to apply to the librarystatic RuntimeLibraryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RuntimeLibrary[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface xyz.srnyx.annoyingapi.library.AnnoyingLibrary
getId, getLibrary, getLibraryWithRelocations
-
-
-
-
Enum Constant Detail
-
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
-
ITEM_NBT_API
public static final RuntimeLibrary ITEM_NBT_API
de.tr7zw:item-nbt-api
-
H2
public static final RuntimeLibrary H2
com.h2database:h2
-
POSTGRESQL
public static final RuntimeLibrary POSTGRESQL
org.postgresql:postgresql
-
-
Field Detail
-
librarySupplier
@NotNull public final @NotNull java.util.function.Supplier<net.byteflux.libby.Library.Builder> librarySupplier
-
relocations
@NotNull public final @NotNull java.util.function.Function<AnnoyingPlugin,java.util.Collection<net.byteflux.libby.relocation.Relocation>> relocations
-
-
Method Detail
-
values
public static RuntimeLibrary[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RuntimeLibrary c : RuntimeLibrary.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuntimeLibrary valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getLibrarySupplier
@NotNull public @NotNull java.util.function.Supplier<net.byteflux.libby.Library.Builder> getLibrarySupplier()
Description copied from interface:AnnoyingLibraryThe supplier of the builder to create the library with- Specified by:
getLibrarySupplierin interfaceAnnoyingLibrary- Returns:
- a supplier that gives a new builder to create the library with
-
getRelocations
@NotNull public @NotNull java.util.function.Function<AnnoyingPlugin,java.util.Collection<net.byteflux.libby.relocation.Relocation>> getRelocations()
Description copied from interface:AnnoyingLibraryThe relocations to apply to the library- Specified by:
getRelocationsin interfaceAnnoyingLibrary- Returns:
- a function that gives a collection of relocations to apply to the library
-
-