refactor!: Remove deprecated WorldManager methods (#2526)

This commit is contained in:
Ben Woo 2023-02-03 22:40:42 +08:00 committed by GitHub
parent 17351e66c1
commit 3ec22fc578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 43 deletions

View File

@ -1123,7 +1123,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
* @return True if success, false if fail.
*/
public Boolean cloneWorld(String oldName, String newName, String generator) {
return this.worldManager.cloneWorld(oldName, newName, generator);
return this.worldManager.cloneWorld(oldName, newName);
}
/**

View File

@ -59,18 +59,6 @@ public interface MVWorldManager {
boolean addWorld(String name, Environment env, String seedString, WorldType type, Boolean generateStructures,
String generator, boolean useSpawnAdjust);
/**
* Make a copy of a world.
*
* @param oldName Name of world to be copied
* @param newName Name of world to be created
* @param generator The Custom generator plugin to use. Ignored.
* @return True if the world is copied successfully, false if not.
* @deprecated Use {@link #cloneWorld(String, String)} instead.
*/
@Deprecated
boolean cloneWorld(String oldName, String newName, String generator);
/**
* Make a copy of a world.
*
@ -234,19 +222,9 @@ public interface MVWorldManager {
*/
void loadDefaultWorlds();
/**
* Return the World Purger.
*
* @return A valid {@link PurgeWorlds}.
* @deprecated {@link PurgeWorlds} is deprecated!
*/
@Deprecated
PurgeWorlds getWorldPurger();
/**
* Gets the {@link WorldPurger}.
* <p>
* TODO: Remove {@link #getWorldPurger()} and replace it with this method.
* @return The {@link WorldPurger} this {@link MVWorldManager} is using.
* @see WorldPurger
* @see SimpleWorldPurger

View File

@ -95,16 +95,6 @@ public class WorldManager implements MVWorldManager {
}
}
/**
* {@inheritDoc}
* @deprecated Use {@link #cloneWorld(String, String)} instead.
*/
@Override
@Deprecated
public boolean cloneWorld(String oldName, String newName, String generator) {
return this.cloneWorld(oldName, newName);
}
/**
* {@inheritDoc}
*/
@ -784,16 +774,6 @@ public class WorldManager implements MVWorldManager {
}
}
/**
* {@inheritDoc}
* @deprecated This is deprecated!
*/
@Override
@Deprecated
public PurgeWorlds getWorldPurger() {
return new PurgeWorlds(plugin);
}
/**
* {@inheritDoc}
*/