Package me.mrCookieSlime.Slimefun
Class SlimefunPlugin
- java.lang.Object
-
- org.bukkit.plugin.PluginBase
-
- org.bukkit.plugin.java.JavaPlugin
-
- me.mrCookieSlime.Slimefun.SlimefunPlugin
-
- All Implemented Interfaces:
SlimefunAddon
,CommandExecutor
,TabCompleter
,TabExecutor
,Plugin
public final class SlimefunPlugin extends JavaPlugin implements SlimefunAddon
This is the main class of Slimefun. This is where all the magic starts, take a look around. Feel like home.- Author:
- TheBusyBiscuit
-
-
Field Summary
Fields Modifier and Type Field Description static SlimefunPlugin
instance
-
Constructor Summary
Constructors Constructor Description SlimefunPlugin()
-
Method Summary
-
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Methods inherited from interface io.github.thebusybiscuit.slimefun4.api.SlimefunAddon
getLogger, getName, getPluginVersion, hasDependency
-
-
-
-
Field Detail
-
instance
public static SlimefunPlugin instance
-
-
Method Detail
-
onEnable
public void onEnable()
- Specified by:
onEnable
in interfacePlugin
- Overrides:
onEnable
in classJavaPlugin
-
onDisable
public void onDisable()
- Specified by:
onDisable
in interfacePlugin
- Overrides:
onDisable
in classJavaPlugin
-
getCfg
public static io.github.thebusybiscuit.cscorelib2.config.Config getCfg()
-
getResearchCfg
public static io.github.thebusybiscuit.cscorelib2.config.Config getResearchCfg()
-
getItemCfg
public static io.github.thebusybiscuit.cscorelib2.config.Config getItemCfg()
-
getGPSNetwork
public static GPSNetwork getGPSNetwork()
-
getTicker
public static TickerTask getTicker()
-
getVersion
public static String getVersion()
This returns the version of Slimefun that is currently installed.- Returns:
- The currently installed version of Slimefun
-
getProtectionManager
public static io.github.thebusybiscuit.cscorelib2.protection.ProtectionManager getProtectionManager()
-
getLocal
public static LocalizationService getLocal()
This returns theLocalizationService
of Slimefun.- Returns:
- The
LocalizationService
of Slimefun
-
getMinecraftRecipes
public static MinecraftRecipeService getMinecraftRecipes()
-
getItemDataService
public static CustomItemDataService getItemDataService()
-
getItemTextureService
public static CustomTextureService getItemTextureService()
-
getPermissionsService
public static PermissionsService getPermissionsService()
-
getBlockDataService
public static BlockDataService getBlockDataService()
-
getThirdPartySupportService
public static ThirdPartyPluginService getThirdPartySupportService()
-
getWorldSettingsService
public static PerWorldSettingsService getWorldSettingsService()
-
getUpdater
public static UpdaterService getUpdater()
This method returns theUpdaterService
of Slimefun. It is used to handle automatic updates.- Returns:
- The
UpdaterService
for Slimefun
-
getGitHubService
public static GitHubService getGitHubService()
This method returns theGitHubService
of Slimefun. It is used to retrieve data from GitHub repositories.- Returns:
- The
GitHubService
for Slimefun
-
getRegistry
public static SlimefunRegistry getRegistry()
-
getNetworkManager
public static NetworkManager getNetworkManager()
-
getAncientAltarListener
public static AncientAltarListener getAncientAltarListener()
-
getGrapplingHookListener
public static GrapplingHookListener getGrapplingHookListener()
-
getBackpackListener
public static BackpackListener getBackpackListener()
-
getBowListener
public static SlimefunBowListener getBowListener()
-
getCommand
public static SlimefunCommand getCommand()
TheCommand
that was added by Slimefun.- Returns:
- Slimefun's command
-
getMinecraftVersion
public static MinecraftVersion getMinecraftVersion()
This returns the currently installed version of Minecraft.- Returns:
- The current version of Minecraft
-
getCSCoreLibVersion
public static String getCSCoreLibVersion()
-
getJavaPlugin
public JavaPlugin getJavaPlugin()
Description copied from interface:SlimefunAddon
This method returns the instance ofJavaPlugin
that thisSlimefunAddon
refers to.- Specified by:
getJavaPlugin
in interfaceSlimefunAddon
- Returns:
- The instance of your
JavaPlugin
-
getBugTrackerURL
public String getBugTrackerURL()
Description copied from interface:SlimefunAddon
This method returns a link to the Bug Tracker of thisSlimefunAddon
- Specified by:
getBugTrackerURL
in interfaceSlimefunAddon
- Returns:
- The URL for this Plugin's Bug Tracker, or null
-
-