Package com.comphenix.protocol
Class ProtocolLibrary
java.lang.Object
com.comphenix.protocol.ProtocolLibrary
The main entry point for ProtocolLib.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDisables the ProtocolLib update checker.static ProtocolConfigGets ProtocolLib's configurationstatic ErrorReporterRetrieve the current error reporter.static org.bukkit.plugin.PluginGets the ProtocolLib plugin instance.static ProtocolManagerRetrieves the packet protocol manager.static ProtocolSchedulerprotected static voidinit(org.bukkit.plugin.Plugin plugin, ProtocolConfig config, ProtocolManager manager, ProtocolScheduler scheduler, ErrorReporter reporter) static booleanWhether updates are currently disabled.
-
Field Details
-
MINIMUM_MINECRAFT_VERSION
The minimum version ProtocolLib has been tested with.- See Also:
-
MAXIMUM_MINECRAFT_VERSION
The maximum version ProtocolLib has been tested with.- See Also:
-
MINECRAFT_LAST_RELEASE_DATE
The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.21.8) was released.- See Also:
-
-
Constructor Details
-
ProtocolLibrary
public ProtocolLibrary()
-
-
Method Details
-
init
protected static void init(org.bukkit.plugin.Plugin plugin, ProtocolConfig config, ProtocolManager manager, ProtocolScheduler scheduler, ErrorReporter reporter) -
getPlugin
public static org.bukkit.plugin.Plugin getPlugin()Gets the ProtocolLib plugin instance.- Returns:
- The plugin instance
-
getConfig
Gets ProtocolLib's configuration- Returns:
- The config
-
getProtocolManager
Retrieves the packet protocol manager.- Returns:
- Packet protocol manager
-
getScheduler
-
getErrorReporter
Retrieve the current error reporter.- Returns:
- Current error reporter.
-
disableUpdates
public static void disableUpdates()Disables the ProtocolLib update checker. -
updatesDisabled
public static boolean updatesDisabled()Whether updates are currently disabled.- Returns:
- True if it is, false if not
-