2018-08-12 14:03:07 +00:00
|
|
|
package com.boydti.fawe;
|
|
|
|
|
2019-04-30 16:19:10 +00:00
|
|
|
import com.boydti.fawe.beta.implementation.QueueHandler;
|
2018-08-12 14:03:07 +00:00
|
|
|
import com.boydti.fawe.object.FaweCommand;
|
|
|
|
import com.boydti.fawe.object.FawePlayer;
|
|
|
|
import com.boydti.fawe.regions.FaweMaskManager;
|
|
|
|
import com.boydti.fawe.util.TaskManager;
|
|
|
|
import com.boydti.fawe.util.image.ImageViewer;
|
|
|
|
import com.sk89q.worldedit.world.World;
|
2019-03-28 19:02:37 +00:00
|
|
|
|
2018-08-12 14:03:07 +00:00
|
|
|
import java.io.File;
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
public interface IFawe {
|
2019-03-28 19:02:37 +00:00
|
|
|
void debug(final String s);
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
File getDirectory();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
void setupCommand(final String label, final FaweCommand cmd);
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
FawePlayer wrap(final Object obj);
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
void setupVault();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
TaskManager getTaskManager();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
String getWorldName(World world);
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
Collection<FaweMaskManager> getMaskManagers();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
void startMetrics();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
|
|
|
default ImageViewer getImageViewer(FawePlayer player) { return null; }
|
|
|
|
|
|
|
|
default int getPlayerCount() {
|
|
|
|
return Fawe.get().getCachedPlayers().size();
|
|
|
|
}
|
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
String getPlatformVersion();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
boolean isOnlineMode();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
String getPlatform();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
UUID getUUID(String name);
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
String getName(UUID uuid);
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
Object getBlocksHubApi();
|
2018-08-12 14:03:07 +00:00
|
|
|
|
2019-03-28 19:02:37 +00:00
|
|
|
default String getDebugInfo() {
|
2018-08-12 14:03:07 +00:00
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2019-04-30 16:19:10 +00:00
|
|
|
QueueHandler getQueueHandler();
|
|
|
|
|
2018-08-12 14:03:07 +00:00
|
|
|
}
|