Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Byteflux/libby
/ functions
Functions
82 in github.com/Byteflux/libby
⨍
Functions
82
◇
Types & classes
20
↓ 10 callers
Method
log
Logs a message with the provided level. @param level message severity level @param message the message to log
core/src/main/java/net/byteflux/libby/logging/adapters/LogAdapter.java:15
↓ 8 callers
Method
debug
Logs a debug message. <p> If the logger's configured log level is more severe than {@link LogLevel#DEBUG}, this message won't be logged. @param messa
core/src/main/java/net/byteflux/libby/logging/Logger.java:110
↓ 8 callers
Method
log
Logs a message with the provided level. <p> If the provided log level is less severe than the logger's configured log level, this message won't be log
core/src/main/java/net/byteflux/libby/logging/Logger.java:76
↓ 8 callers
Method
warn
Logs a warning message. <p> If the logger's configured log level is more severe than {@link LogLevel#WARN}, this message won't be logged. @param mess
core/src/main/java/net/byteflux/libby/logging/Logger.java:160
↓ 6 callers
Method
info
Logs an informational message. <p> If the logger's configured log level is more severe than {@link LogLevel#INFO}, this message won't be logged. @par
core/src/main/java/net/byteflux/libby/logging/Logger.java:135
↓ 5 callers
Method
addRepository
Adds a repository URL to this library manager. <p> Artifacts will be resolved using this repository when attempts to locate the artifact through previ
core/src/main/java/net/byteflux/libby/LibraryManager.java:139
↓ 4 callers
Method
downloadLibrary
Downloads a library jar and returns the contents as a byte array. @param url the URL to the library jar @return downloaded jar as byte array or null
core/src/main/java/net/byteflux/libby/LibraryManager.java:203
↓ 4 callers
Method
error
Logs an error message. @param message the message to log
core/src/main/java/net/byteflux/libby/logging/Logger.java:182
↓ 3 callers
Method
addPath
Adds a path to the classpath. @param path the path to add
core/src/main/java/net/byteflux/libby/classloader/IsolatedClassLoader.java:44
↓ 3 callers
Method
artifactId
Sets the Maven artifact ID for this library. @param artifactId Maven artifact ID @return this builder
core/src/main/java/net/byteflux/libby/Library.java:301
↓ 3 callers
Method
build
Creates a new relocation using this builder's configuration. @return new relocation
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:180
↓ 3 callers
Method
builder
Creates a new library builder. @return new library builder
core/src/main/java/net/byteflux/libby/Library.java:228
↓ 3 callers
Method
checksum
Sets the binary SHA-256 checksum for this library. @param checksum binary SHA-256 checksum @return this builder
core/src/main/java/net/byteflux/libby/Library.java:334
↓ 3 callers
Method
groupId
Sets the Maven group ID for this library. @param groupId Maven group ID @return this builder
core/src/main/java/net/byteflux/libby/Library.java:290
↓ 3 callers
Method
version
Sets the artifact version for this library. @param version artifact version @return this builder
core/src/main/java/net/byteflux/libby/Library.java:312
↓ 2 callers
Method
canLog
Gets whether messages matching the provided level can be logged under the current log level setting. <p> Returns true if provided log level is equal t
core/src/main/java/net/byteflux/libby/logging/Logger.java:59
↓ 2 callers
Method
getChecksum
Gets the binary SHA-256 checksum of this library's jar file. @return checksum or null
core/src/main/java/net/byteflux/libby/Library.java:159
↓ 2 callers
Method
getPath
Gets the relative Maven path to this library's artifact. @return Maven path for this library
core/src/main/java/net/byteflux/libby/Library.java:195
↓ 2 callers
Method
hasClassifier
Gets whether this library has an artifact classifier. @return true if library has classifier, false otherwise
core/src/main/java/net/byteflux/libby/Library.java:150
↓ 2 callers
Method
hasRelocations
Gets whether this library has any jar relocations. @return true if library has relocations, false otherwise
core/src/main/java/net/byteflux/libby/Library.java:186
↓ 1 callers
Method
addToClasspath
Adds a file to the plugin's classpath. @param file the file to add
core/src/main/java/net/byteflux/libby/LibraryManager.java:87
↓ 1 callers
Method
addURL
Adds a URL to the classpath. @param url the URL to add
core/src/main/java/net/byteflux/libby/classloader/IsolatedClassLoader.java:34
↓ 1 callers
Method
getExcludes
Gets excluded classes and resources. @return classes and resources to exclude
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:92
↓ 1 callers
Method
getIncludes
Gets included classes and resources. @return classes and resources to include
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:83
↓ 1 callers
Method
getLevel
Gets the current log level. @return current log level
core/src/main/java/net/byteflux/libby/logging/Logger.java:36
↓ 1 callers
Method
getPattern
Gets the search pattern. @return pattern to search
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:65
↓ 1 callers
Method
getRelocatedPath
Gets the relative path to this library's relocated jar. @return path to relocated artifact or null if has no relocations
core/src/main/java/net/byteflux/libby/Library.java:204
↓ 1 callers
Method
getRelocatedPattern
Gets the replacement pattern. @return pattern to replace with
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:74
↓ 1 callers
Method
getRelocations
Gets the jar relocations to apply to this library. @return jar relocations to apply
core/src/main/java/net/byteflux/libby/Library.java:177
↓ 1 callers
Method
getRepositories
Gets the currently added repositories used to resolve artifacts. <p> For each library this list is traversed to download artifacts after the direct do
core/src/main/java/net/byteflux/libby/LibraryManager.java:122
↓ 1 callers
Method
getUrls
Gets the direct download URLs for this library. @return direct download URLs
core/src/main/java/net/byteflux/libby/Library.java:105
↓ 1 callers
Method
hasChecksum
Gets whether this library has a checksum. @return true if library has checksum, false otherwise
core/src/main/java/net/byteflux/libby/Library.java:168
↓ 1 callers
Method
relocate
Processes the input jar and generates an output jar with the provided relocation rules applied, then returns the path to the relocated jar. @param in
core/src/main/java/net/byteflux/libby/LibraryManager.java:338
↓ 1 callers
Method
resolveLibrary
Gets all of the possible download URLs for this library. Entries are ordered by direct download URLs first and then repository download URLs. @param
core/src/main/java/net/byteflux/libby/LibraryManager.java:188
↓ 1 callers
Method
setLevel
Sets a new log level. @param level new log level
core/src/main/java/net/byteflux/libby/logging/Logger.java:45
↓ 1 callers
Method
toString
Gets a concise, human-readable string representation of this library. @return string representation
core/src/main/java/net/byteflux/libby/Library.java:213
Method
BukkitLibraryManager
Creates a new Bukkit library manager. @param plugin the plugin to manage
bukkit/src/main/java/net/byteflux/libby/BukkitLibraryManager.java:26
Method
BungeeLibraryManager
Creates a new Bungee library manager. @param plugin the plugin to manage
bungee/src/main/java/net/byteflux/libby/BungeeLibraryManager.java:26
Method
IsolatedClassLoader
Creates a new isolated class loader for the given URLs. @param urls the URLs to add to the classpath
core/src/main/java/net/byteflux/libby/classloader/IsolatedClassLoader.java:25
Method
JDKLogAdapter
Creates a new JDK log adapter that logs to a {@link Logger}. @param logger the JDK logger to wrap
core/src/main/java/net/byteflux/libby/logging/adapters/JDKLogAdapter.java:24
Method
Library
Creates a new library. @param urls direct download URLs @param groupId Maven group ID @param artifactId Maven artifact ID @param version
core/src/main/java/net/byteflux/libby/Library.java:75
Method
LibraryManager
Creates a new library manager. @param logAdapter plugin logging adapter @param dataDirectory plugin's data directory
core/src/main/java/net/byteflux/libby/LibraryManager.java:77
Method
Logger
Creates a new logger with the provided adapter. @param adapter the adapter to wrap
core/src/main/java/net/byteflux/libby/logging/Logger.java:27
Method
NukkitLibraryManager
Creates a new Nukkit library manager. @param plugin the plugin to manage
nukkit/src/main/java/net/byteflux/libby/NukkitLibraryManager.java:26
Method
NukkitLogAdapter
Creates a new Nukkit log adapter that logs to a {@link PluginLogger}. @param logger the plugin logger to wrap
nukkit/src/main/java/net/byteflux/libby/logging/adapters/NukkitLogAdapter.java:22
Method
Relocation
Creates a new relocation. @param pattern search pattern @param relocatedPattern replacement pattern @param includes classes and reso
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:43
Method
RelocationHelper
Creates a new relocation helper using the provided library manager to download the dependencies required for runtime relocation. @param libraryManage
core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java:45
Method
SLF4JLogAdapter
Creates a new SLF4J log adapter that logs to a {@link Logger}. @param logger the SLF4J logger to wrap
slf4j/src/main/java/net/byteflux/libby/logging/adapters/SLF4JLogAdapter.java:22
Method
SpongeLibraryManager
Creates a new Sponge library manager. @param logger the plugin logger @param dataDirectory plugin's data directory @param plugin the pl
sponge/src/main/java/net/byteflux/libby/SpongeLibraryManager.java:30
Method
URLClassLoaderHelper
Creates a new URL class loader helper. @param classLoader the class loader to manage
core/src/main/java/net/byteflux/libby/classloader/URLClassLoaderHelper.java:32
Method
VelocityLibraryManager
Creates a new Velocity library manager. @param logger the plugin logger @param dataDirectory plugin's data directory @param pluginManager Velo
velocity/src/main/java/net/byteflux/libby/VelocityLibraryManager.java:36
Method
addJCenter
Adds the Bintray JCenter repository.
core/src/main/java/net/byteflux/libby/LibraryManager.java:170
Method
addJitPack
Adds the JitPack repository.
core/src/main/java/net/byteflux/libby/LibraryManager.java:177
Method
addMavenCentral
Adds the Maven Central repository.
core/src/main/java/net/byteflux/libby/LibraryManager.java:156
Method
addMavenLocal
Adds the current user's local Maven repository.
core/src/main/java/net/byteflux/libby/LibraryManager.java:149
Method
addSonatype
Adds the Sonatype OSS repository.
core/src/main/java/net/byteflux/libby/LibraryManager.java:163
Method
addToClasspath
Adds a file to the Bungee plugin's classpath. @param file the file to add
bungee/src/main/java/net/byteflux/libby/BungeeLibraryManager.java:36
Method
addToClasspath
Adds a file to the Bukkit plugin's classpath. @param file the file to add
bukkit/src/main/java/net/byteflux/libby/BukkitLibraryManager.java:36
Method
addToClasspath
Adds a URL to the class loader's classpath. @param url the URL to add
core/src/main/java/net/byteflux/libby/classloader/URLClassLoaderHelper.java:48
Method
addToClasspath
Adds a file to the Velocity plugin's classpath. @param file the file to add
velocity/src/main/java/net/byteflux/libby/VelocityLibraryManager.java:52
Method
addToClasspath
Adds a file to the Sponge plugin's classpath. @param file the file to add
sponge/src/main/java/net/byteflux/libby/SpongeLibraryManager.java:41
Method
addToClasspath
Adds a file to the Nukkit plugin's classpath. @param file the file to add
nukkit/src/main/java/net/byteflux/libby/NukkitLibraryManager.java:36
Method
build
Creates a new library using this builder's configuration. @return new library
core/src/main/java/net/byteflux/libby/Library.java:376
Method
builder
Creates a new relocation builder. @return new relocation builder
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:101
Method
classifier
Sets the artifact classifier for this library. @param classifier artifact classifier @return this builder
core/src/main/java/net/byteflux/libby/Library.java:323
Method
exclude
Adds a class or resource to be excluded. @param exclude class or resource to exclude @return this builder
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:170
Method
getArtifactId
Gets the Maven artifact ID for this library. @return Maven artifact ID
core/src/main/java/net/byteflux/libby/Library.java:123
Method
getClassifier
Gets the artifact classifier for this library. @return artifact classifier or null
core/src/main/java/net/byteflux/libby/Library.java:141
Method
getGroupId
Gets the Maven group ID for this library. @return Maven group ID
core/src/main/java/net/byteflux/libby/Library.java:114
Method
getLogLevel
Gets the logging level for this library manager. @return log level
core/src/main/java/net/byteflux/libby/LibraryManager.java:94
Method
getVersion
Gets the artifact version for this library. @return artifact version
core/src/main/java/net/byteflux/libby/Library.java:132
Method
include
Adds a class or resource to be included. @param include class or resource to include @return this builder
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:159
Method
loadLibrary
Loads a library jar into the plugin's classpath. If the library jar doesn't exist locally, it will be downloaded. <p> If the provided library has any
core/src/main/java/net/byteflux/libby/LibraryManager.java:384
Method
log
Logs a message with the provided level to the SLF4J logger. @param level message severity level @param message the message to log
slf4j/src/main/java/net/byteflux/libby/logging/adapters/SLF4JLogAdapter.java:32
Method
log
Logs a message with the provided level to the JDK logger. @param level message severity level @param message the message to log
core/src/main/java/net/byteflux/libby/logging/adapters/JDKLogAdapter.java:34
Method
log
Logs a message with the provided level to the Nukkit plugin logger. @param level message severity level @param message the message to log
nukkit/src/main/java/net/byteflux/libby/logging/adapters/NukkitLogAdapter.java:32
Method
pattern
Sets the search pattern. @param pattern pattern to search @return this builder
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:137
Method
relocate
Adds a jar relocation to apply to this library. @param relocation jar relocation to apply @return this builder
core/src/main/java/net/byteflux/libby/Library.java:355
Method
relocate
Invokes the jar relocator to process the input jar and generate an output jar with the provided relocation rules applied. @param in input ja
core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java:105
Method
relocatedPattern
Sets the replacement pattern. @param relocatedPattern pattern to replace with @return this builder
core/src/main/java/net/byteflux/libby/relocation/Relocation.java:148
Method
setLogLevel
Sets the logging level for this library manager. <p> By setting this value, the library manager's logger will not log any messages with a level less s
core/src/main/java/net/byteflux/libby/LibraryManager.java:110
Method
url
Adds a direct download URL for this library. @param url direct download URL @return this builder
core/src/main/java/net/byteflux/libby/Library.java:279