2016-04-14 16:24:03 +00:00
|
|
|
package me.mrCookieSlime.Slimefun;
|
|
|
|
|
2020-02-01 00:32:38 +00:00
|
|
|
import java.util.Set;
|
2017-06-22 14:43:49 +00:00
|
|
|
|
2020-02-01 00:32:38 +00:00
|
|
|
import org.bukkit.plugin.Plugin;
|
2017-06-22 14:43:49 +00:00
|
|
|
|
2019-12-27 01:16:01 +00:00
|
|
|
import io.github.thebusybiscuit.cscorelib2.config.Config;
|
2019-09-01 16:53:02 +00:00
|
|
|
import io.github.thebusybiscuit.cscorelib2.protection.ProtectionManager;
|
2020-03-22 15:44:28 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.api.MinecraftVersion;
|
2020-02-08 01:36:57 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.api.gps.GPSNetwork;
|
2020-02-01 00:32:38 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.SlimefunRegistry;
|
2019-12-22 13:00:35 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.commands.SlimefunCommand;
|
2020-05-07 16:00:44 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.networks.NetworkManager;
|
2019-12-08 11:58:05 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.BlockDataService;
|
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.CustomItemDataService;
|
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.CustomTextureService;
|
2020-03-04 23:52:14 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.LocalizationService;
|
2020-03-18 13:20:49 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.MinecraftRecipeService;
|
2020-04-09 00:21:30 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.PerWorldSettingsService;
|
2020-03-10 20:44:24 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.PermissionsService;
|
2019-12-22 22:00:05 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.UpdaterService;
|
2020-03-04 23:04:18 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.github.GitHubService;
|
2020-03-12 02:32:04 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.core.services.plugins.ThirdPartyPluginService;
|
2020-01-12 10:05:35 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.implementation.listeners.AncientAltarListener;
|
2019-12-29 13:14:51 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.implementation.listeners.BackpackListener;
|
2019-12-29 17:30:48 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.implementation.listeners.GrapplingHookListener;
|
2020-01-05 13:30:50 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.implementation.listeners.SlimefunBowListener;
|
2020-02-04 18:05:49 +00:00
|
|
|
import io.github.thebusybiscuit.slimefun4.implementation.tasks.TickerTask;
|
2016-04-14 16:24:03 +00:00
|
|
|
import me.mrCookieSlime.CSCoreLibPlugin.CSCoreLib;
|
|
|
|
|
2020-03-04 23:04:18 +00:00
|
|
|
/**
|
2020-06-27 11:10:47 +00:00
|
|
|
* @deprecated This class has been moved to {@link io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin}
|
|
|
|
*
|
2020-06-25 05:05:17 +00:00
|
|
|
* @author TheBusyBiscuit
|
2020-06-27 11:10:47 +00:00
|
|
|
*
|
2020-03-04 23:04:18 +00:00
|
|
|
*/
|
2020-06-27 11:10:47 +00:00
|
|
|
@Deprecated
|
|
|
|
public class SlimefunPlugin {
|
2020-03-27 11:16:42 +00:00
|
|
|
|
2020-03-04 23:04:18 +00:00
|
|
|
public static Config getCfg() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getCfg();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
2020-03-16 18:06:51 +00:00
|
|
|
public static Config getResearchCfg() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getResearchCfg();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static Config getItemCfg() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getItemCfg();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static GPSNetwork getGPSNetwork() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getGPSNetwork();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static TickerTask getTicker() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getTickerTask();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static String getVersion() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getVersion();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static ProtectionManager getProtectionManager() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getProtectionManager();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static LocalizationService getLocal() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getLocalization();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
2020-03-18 13:20:49 +00:00
|
|
|
public static MinecraftRecipeService getMinecraftRecipes() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getMinecraftRecipeService();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static CustomItemDataService getItemDataService() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getItemDataService();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static CustomTextureService getItemTextureService() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getItemTextureService();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
2020-03-10 20:44:24 +00:00
|
|
|
public static PermissionsService getPermissionsService() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getPermissionsService();
|
2020-03-10 20:44:24 +00:00
|
|
|
}
|
|
|
|
|
2020-03-04 23:04:18 +00:00
|
|
|
public static BlockDataService getBlockDataService() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getBlockDataService();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
2020-03-12 02:32:04 +00:00
|
|
|
public static ThirdPartyPluginService getThirdPartySupportService() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getThirdPartySupportService();
|
2020-03-12 02:32:04 +00:00
|
|
|
}
|
|
|
|
|
2020-04-09 00:21:30 +00:00
|
|
|
public static PerWorldSettingsService getWorldSettingsService() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getWorldSettingsService();
|
2020-04-09 00:21:30 +00:00
|
|
|
}
|
|
|
|
|
2020-03-04 23:04:18 +00:00
|
|
|
public static UpdaterService getUpdater() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getUpdater();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static GitHubService getGitHubService() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getGitHubService();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static SlimefunRegistry getRegistry() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getRegistry();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static NetworkManager getNetworkManager() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getNetworkManager();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static AncientAltarListener getAncientAltarListener() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getAncientAltarListener();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static GrapplingHookListener getGrapplingHookListener() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getGrapplingHookListener();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static BackpackListener getBackpackListener() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getBackpackListener();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static SlimefunBowListener getBowListener() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getBowListener();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static Set<Plugin> getInstalledAddons() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getInstalledAddons();
|
2020-03-04 23:04:18 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 15:39:07 +00:00
|
|
|
public static SlimefunCommand getCommand() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getCommand();
|
2020-03-06 15:39:07 +00:00
|
|
|
}
|
|
|
|
|
2020-03-14 00:12:52 +00:00
|
|
|
public static MinecraftVersion getMinecraftVersion() {
|
2020-06-27 11:10:47 +00:00
|
|
|
return io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin.getMinecraftVersion();
|
2020-03-14 00:12:52 +00:00
|
|
|
}
|
2020-04-09 00:21:30 +00:00
|
|
|
|
2020-04-07 17:01:30 +00:00
|
|
|
public static String getCSCoreLibVersion() {
|
|
|
|
return CSCoreLib.getLib().getDescription().getVersion();
|
|
|
|
}
|
2020-03-14 00:12:52 +00:00
|
|
|
|
2016-04-14 16:24:03 +00:00
|
|
|
}
|