public class ProtocolLibrary extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
INCOMPATIBLE
Plugins that are currently incompatible with ProtocolLib.
|
static String |
MAXIMUM_MINECRAFT_VERSION
The maximum version ProtocolLib has been tested with.
|
static String |
MINECRAFT_LAST_RELEASE_DATE
The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.11) was released.
|
static String |
MINIMUM_MINECRAFT_VERSION
The minimum version ProtocolLib has been tested with.
|
| Constructor and Description |
|---|
ProtocolLibrary() |
| Modifier and Type | Method and Description |
|---|---|
static void |
disableUpdates()
Disables the ProtocolLib update checker.
|
static ProtocolConfig |
getConfig()
Gets ProtocolLib's configuration
|
static ErrorReporter |
getErrorReporter()
Retrieve the current error reporter.
|
static com.google.common.util.concurrent.ListeningScheduledExecutorService |
getExecutorAsync()
Retrieve an executor service for performing asynchronous tasks on the behalf of ProtocolLib.
|
static com.google.common.util.concurrent.ListeningScheduledExecutorService |
getExecutorSync()
Retrieve an executor service for performing synchronous tasks (main thread) on the behalf of ProtocolLib.
|
static org.bukkit.plugin.Plugin |
getPlugin()
Gets the ProtocolLib plugin instance.
|
static ProtocolManager |
getProtocolManager()
Retrieves the packet protocol manager.
|
protected static void |
init(org.bukkit.plugin.Plugin plugin,
ProtocolConfig config,
ProtocolManager manager,
ErrorReporter reporter,
com.google.common.util.concurrent.ListeningScheduledExecutorService executorAsync,
com.google.common.util.concurrent.ListeningScheduledExecutorService executorSync) |
static boolean |
updatesDisabled()
Whether or not updates are currently disabled.
|
public static final String MINIMUM_MINECRAFT_VERSION
public static final String MAXIMUM_MINECRAFT_VERSION
public static final String MINECRAFT_LAST_RELEASE_DATE
protected static void init(org.bukkit.plugin.Plugin plugin,
ProtocolConfig config,
ProtocolManager manager,
ErrorReporter reporter,
com.google.common.util.concurrent.ListeningScheduledExecutorService executorAsync,
com.google.common.util.concurrent.ListeningScheduledExecutorService executorSync)
public static org.bukkit.plugin.Plugin getPlugin()
public static ProtocolConfig getConfig()
public static ProtocolManager getProtocolManager()
public static ErrorReporter getErrorReporter()
public static com.google.common.util.concurrent.ListeningScheduledExecutorService getExecutorAsync()
Note that this service is NULL if ProtocolLib has not been initialized yet.
public static com.google.common.util.concurrent.ListeningScheduledExecutorService getExecutorSync()
Note that this service is NULL if ProtocolLib has not been initialized yet.
public static void disableUpdates()
public static boolean updatesDisabled()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.