mirror of
https://github.com/xoo0524tw/OpenMBedwars.git
synced 2026-12-05 22:06:02 +02:00
Initial commit: MBedwars 5.5.9.1 reconstructed Maven & IDEA-ready codebase
This commit is contained in:
commit
a8fad81ea0
1609 files changed
+239964
No files matched your search
@@ -0,0 +1,104 @@
|
||||
package de.marcely.bedwars.api;
|
||||
|
||||
import de.marcely.bedwars.api.MigrationProcess.Origin;
|
||||
import de.marcely.bedwars.api.arena.picker.ArenaPickerAPI;
|
||||
import de.marcely.bedwars.api.command.CommandsCollection;
|
||||
import de.marcely.bedwars.api.configuration.ConfigurationAPI;
|
||||
import de.marcely.bedwars.api.hook.HookAPI;
|
||||
import de.marcely.bedwars.api.message.MessageAPI;
|
||||
import de.marcely.bedwars.api.player.PlayerDataAPI;
|
||||
import de.marcely.bedwars.api.remote.RemoteAPI;
|
||||
import de.marcely.bedwars.api.unsafe.BedwarsAPILayer;
|
||||
import de.marcely.bedwars.api.world.WorldStorage;
|
||||
import de.marcely.bedwars.libraries.org.jetbrains.annotations.Nullable;
|
||||
import de.marcely.bedwars.tools.Helper;
|
||||
import de.marcely.bedwars.tools.NMSHelper;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public final class BedwarsAPI {
|
||||
private BedwarsAPI() {
|
||||
}
|
||||
|
||||
public static JavaPlugin getPlugin() {
|
||||
return BedwarsAPILayer.INSTANCE.getPlugin();
|
||||
}
|
||||
|
||||
public static boolean reload(@Nullable CommandSender var0) {
|
||||
return BedwarsAPILayer.INSTANCE.reload(var0);
|
||||
}
|
||||
|
||||
public static PluginState getState() {
|
||||
return BedwarsAPILayer.INSTANCE.getState();
|
||||
}
|
||||
|
||||
public static GameAPI getGameAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getGameAPI();
|
||||
}
|
||||
|
||||
public static ArenaPickerAPI getArenaPickerAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getArenaPickerAPI();
|
||||
}
|
||||
|
||||
public static RemoteAPI getRemoteAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getRemoteAPI();
|
||||
}
|
||||
|
||||
public static void setRemoteAPI(RemoteAPI var0) {
|
||||
BedwarsAPILayer.INSTANCE.setRemoteAPI(var0);
|
||||
}
|
||||
|
||||
public static PlayerDataAPI getPlayerDataAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getPlayerDataAPI();
|
||||
}
|
||||
|
||||
public static MessageAPI getMessageAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getMessageAPI();
|
||||
}
|
||||
|
||||
public static AddonAPI getAddonAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getAddonAPI();
|
||||
}
|
||||
|
||||
public static HookAPI getHookAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getHookAPI();
|
||||
}
|
||||
|
||||
public static ConfigurationAPI getConfigurationAPI() {
|
||||
return BedwarsAPILayer.INSTANCE.getConfigurationAPI();
|
||||
}
|
||||
|
||||
public static NMSHelper getNMSHelper() {
|
||||
return BedwarsAPILayer.INSTANCE.getNMSHelper();
|
||||
}
|
||||
|
||||
public static Helper getHelper() {
|
||||
return BedwarsAPILayer.INSTANCE.getHelper();
|
||||
}
|
||||
|
||||
public static CommandsCollection getRootCommandsCollection() {
|
||||
return BedwarsAPILayer.INSTANCE.getRootCommandsCollection();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static WorldStorage getWorldStorage(World var0) {
|
||||
return BedwarsAPILayer.INSTANCE.getWorldStorage(var0);
|
||||
}
|
||||
|
||||
public static MigrationProcess prepareMigrationProcess(Origin var0) {
|
||||
return BedwarsAPILayer.INSTANCE.initMigrationProcess(var0);
|
||||
}
|
||||
|
||||
public static MigrationProcess[] getRunningMigrationProcesses() {
|
||||
return BedwarsAPILayer.INSTANCE.getRunningMigrationProcesses();
|
||||
}
|
||||
|
||||
public static void onReady(Runnable var0) {
|
||||
BedwarsAPILayer.INSTANCE.onReady(var0);
|
||||
}
|
||||
|
||||
public static int getAPIVersion() {
|
||||
return 209;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user