mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-16 20:41:59 +01:00
changed MVCore to MultiverseCore in api module.
This commit is contained in:
parent
f0bac0a84d
commit
c425b4d50b
@ -6,7 +6,7 @@ package com.mvplugin;
|
||||
* This API contains a bunch of useful things you can get out of Multiverse in general!
|
||||
* This is the class you should cast your plugin to unless you need more Implementation specific API.
|
||||
*/
|
||||
public interface MVCore {
|
||||
public interface MultiverseCore {
|
||||
/**
|
||||
* Gets the primary class responsible for managing Multiverse Worlds.
|
||||
*
|
@ -1,7 +1,7 @@
|
||||
package com.mvplugin.integration;
|
||||
|
||||
import com.mvplugin.MVCore;
|
||||
import com.mvplugin.MultiverseCore;
|
||||
|
||||
public interface Bootstrap {
|
||||
MVCore getPlugin(APICollection api);
|
||||
MultiverseCore getPlugin(APICollection api);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.mvplugin.impl;
|
||||
|
||||
import com.dumptruckman.minecraft.pluginbase.messaging.BundledMessage;
|
||||
import com.mvplugin.MVCore;
|
||||
import com.mvplugin.MultiverseCore;
|
||||
import com.mvplugin.MultiverseWorld;
|
||||
import com.mvplugin.WorldCreationException;
|
||||
import com.mvplugin.WorldManager;
|
||||
@ -13,12 +13,12 @@ import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
public class BaseWorldManager implements WorldManager {
|
||||
protected final MVCore core;
|
||||
protected final MultiverseCore core;
|
||||
private WorldAPI creator;
|
||||
|
||||
private final Map<String, MultiverseWorld> worldMap;
|
||||
|
||||
protected BaseWorldManager(final MVCore core, final WorldAPI creator) {
|
||||
protected BaseWorldManager(final MultiverseCore core, final WorldAPI creator) {
|
||||
this.core = core;
|
||||
this.creator = creator;
|
||||
this.worldMap = new HashMap<String, MultiverseWorld>();
|
||||
|
@ -1,11 +1,11 @@
|
||||
package com.mvplugin.impl;
|
||||
|
||||
import com.mvplugin.MVCore;
|
||||
import com.mvplugin.MultiverseCore;
|
||||
import com.mvplugin.integration.APICollection;
|
||||
|
||||
public final class Bootstrap implements com.mvplugin.integration.Bootstrap {
|
||||
@Override
|
||||
public MVCore getPlugin(APICollection api) {
|
||||
public MultiverseCore getPlugin(APICollection api) {
|
||||
return new BasePlugin(api);
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
package com.mvplugin.impl;
|
||||
|
||||
import com.dumptruckman.minecraft.pluginbase.plugin.PluginBase;
|
||||
import com.mvplugin.MultiverseCore;
|
||||
|
||||
public interface MVCore extends com.mvplugin.MVCore, PluginBase<CoreConfig> {
|
||||
public interface MVCore extends MultiverseCore, PluginBase<CoreConfig> {
|
||||
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.mvplugin.integration.bukkit;
|
||||
|
||||
import com.dumptruckman.minecraft.pluginbase.messaging.BundledMessage;
|
||||
import com.mvplugin.MVCore;
|
||||
import com.mvplugin.MultiverseCore;
|
||||
import com.mvplugin.WorldCreationException;
|
||||
import com.mvplugin.WorldManager.WorldCreationSettings;
|
||||
import com.mvplugin.integration.WorldAPI;
|
||||
@ -16,10 +16,10 @@ import java.io.File;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
public class BukkitWorldAPI implements WorldAPI {
|
||||
private final MVCore plugin;
|
||||
private final MultiverseCore plugin;
|
||||
private final File worldsFolder;
|
||||
|
||||
public BukkitWorldAPI(MVCore plugin, File worldsFolder) {
|
||||
public BukkitWorldAPI(MultiverseCore plugin, File worldsFolder) {
|
||||
this.plugin = plugin;
|
||||
this.worldsFolder = worldsFolder;
|
||||
}
|
||||
|
@ -1,8 +1,7 @@
|
||||
package com.mvplugin.integration.bukkit;
|
||||
|
||||
import com.dumptruckman.minecraft.pluginbase.plugin.AbstractBukkitPlugin;
|
||||
import com.mvplugin.MVCore;
|
||||
import com.mvplugin.WorldManager;
|
||||
import com.mvplugin.MultiverseCore;
|
||||
import com.mvplugin.integration.APICollection;
|
||||
import com.mvplugin.integration.Bootstrap;
|
||||
|
||||
@ -15,7 +14,7 @@ import java.io.IOException;
|
||||
public class MVCoreBukkitIntegration extends AbstractBukkitPlugin<CoreConfig> {
|
||||
private static final String COMMAND_PREFIX = "mv";
|
||||
|
||||
private MVCore plugin;
|
||||
private MultiverseCore plugin;
|
||||
|
||||
public MVCoreBukkitIntegration() {
|
||||
this.setPermissionName("multiverse.core");
|
||||
@ -43,7 +42,7 @@ public class MVCoreBukkitIntegration extends AbstractBukkitPlugin<CoreConfig> {
|
||||
return false;
|
||||
}
|
||||
|
||||
public MVCore getImplementation() {
|
||||
public MultiverseCore getImplementation() {
|
||||
return this.plugin;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user