public enum RuntimeLibrary extends java.lang.Enum<RuntimeLibrary>
| Enum Constant and Description |
|---|
BSTATS_BASE
org.bstats:bstats-base
|
BSTATS_BUKKIT
org.bstats:bstats-bukkit
|
H2
com.h2database:h2
|
ITEM_NBT_API
de.tr7zw:item-nbt-api
|
JAVASSIST
org.javassist:javassist
|
POSTGRESQL
org.postgresql:postgresql
|
REFLECTIONS
org.reflections:reflections
|
| Modifier and Type | Field and Description |
|---|---|
@NotNull java.util.function.Function<AnnoyingPlugin,net.byteflux.libby.Library> |
library
The library to load
|
@NotNull java.util.SortedSet<java.lang.String> |
repositories
The repositories to add before loading the library (immutable)
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull net.byteflux.libby.Library |
getLibrary(@NotNull AnnoyingPlugin plugin)
Gets the library to load
|
void |
load(@NotNull AnnoyingPlugin plugin)
Downloads and loads the library into the specified plugin
|
static RuntimeLibrary |
valueOf(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.
|
public static final RuntimeLibrary BSTATS_BASE
public static final RuntimeLibrary BSTATS_BUKKIT
public static final RuntimeLibrary JAVASSIST
public static final RuntimeLibrary REFLECTIONS
public static final RuntimeLibrary ITEM_NBT_API
public static final RuntimeLibrary H2
public static final RuntimeLibrary POSTGRESQL
@NotNull public final @NotNull java.util.SortedSet<java.lang.String> repositories
@NotNull public final @NotNull java.util.function.Function<AnnoyingPlugin,net.byteflux.libby.Library> library
public static RuntimeLibrary[] values()
for (RuntimeLibrary c : RuntimeLibrary.values()) System.out.println(c);
public static RuntimeLibrary valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NotNull
public @NotNull net.byteflux.libby.Library getLibrary(@NotNull
@NotNull AnnoyingPlugin plugin)
plugin - the plugin to load the library intopublic void load(@NotNull
@NotNull AnnoyingPlugin plugin)
plugin - the plugin to load the library into