2015-11-18 08:49:57 +01:00
|
|
|
package com.boydti.fawe;
|
|
|
|
|
|
|
|
import com.boydti.fawe.object.FaweCommand;
|
|
|
|
import com.boydti.fawe.object.FawePlayer;
|
2016-05-22 19:37:55 +02:00
|
|
|
import com.boydti.fawe.object.FaweQueue;
|
2016-07-12 09:54:00 +02:00
|
|
|
import com.boydti.fawe.regions.FaweMaskManager;
|
2015-11-18 08:49:57 +01:00
|
|
|
import com.boydti.fawe.util.TaskManager;
|
2017-09-11 19:02:44 +02:00
|
|
|
import com.boydti.fawe.util.cui.CUI;
|
2018-01-16 01:30:55 +01:00
|
|
|
import com.boydti.fawe.util.gui.FormBuilder;
|
2017-09-11 19:02:44 +02:00
|
|
|
import com.boydti.fawe.util.image.ImageViewer;
|
2016-04-23 22:41:07 +02:00
|
|
|
import com.sk89q.worldedit.world.World;
|
2016-04-02 18:50:50 +02:00
|
|
|
import java.io.File;
|
|
|
|
import java.util.Collection;
|
2016-04-21 06:07:28 +02:00
|
|
|
import java.util.UUID;
|
2015-11-18 08:49:57 +01:00
|
|
|
|
|
|
|
public interface IFawe {
|
|
|
|
public void debug(final String s);
|
2016-03-31 11:23:10 +02:00
|
|
|
|
2015-11-18 08:49:57 +01:00
|
|
|
public File getDirectory();
|
2016-03-31 11:23:10 +02:00
|
|
|
|
2015-11-18 08:49:57 +01:00
|
|
|
public void setupCommand(final String label, final FaweCommand cmd);
|
2016-03-31 11:23:10 +02:00
|
|
|
|
2015-11-18 08:49:57 +01:00
|
|
|
public FawePlayer wrap(final Object obj);
|
2016-03-31 11:23:10 +02:00
|
|
|
|
2015-11-18 08:49:57 +01:00
|
|
|
public void setupVault();
|
|
|
|
|
|
|
|
public TaskManager getTaskManager();
|
2016-03-31 11:23:10 +02:00
|
|
|
|
2016-09-08 19:41:03 +02:00
|
|
|
public FaweQueue getNewQueue(World world, boolean fast);
|
2016-03-31 11:23:10 +02:00
|
|
|
|
2016-09-13 07:43:23 +02:00
|
|
|
public FaweQueue getNewQueue(String world, boolean fast);
|
|
|
|
|
2016-04-23 22:41:07 +02:00
|
|
|
public String getWorldName(World world);
|
|
|
|
|
2015-11-18 08:49:57 +01:00
|
|
|
public Collection<FaweMaskManager> getMaskManagers();
|
2016-04-02 07:58:42 +02:00
|
|
|
|
|
|
|
public void startMetrics();
|
2016-04-02 18:50:50 +02:00
|
|
|
|
2017-09-11 19:02:44 +02:00
|
|
|
default CUI getCUI(FawePlayer player) { return null; }
|
|
|
|
|
|
|
|
default ImageViewer getImageViewer(FawePlayer player) { return null; }
|
2017-08-15 11:43:17 +02:00
|
|
|
|
|
|
|
default int getPlayerCount() {
|
|
|
|
return Fawe.get().getCachedPlayers().size();
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPlatformVersion();
|
|
|
|
|
|
|
|
public boolean isOnlineMode();
|
|
|
|
|
2016-04-20 20:22:47 +02:00
|
|
|
public String getPlatform();
|
2016-04-21 06:07:28 +02:00
|
|
|
|
|
|
|
public UUID getUUID(String name);
|
|
|
|
|
|
|
|
public String getName(UUID uuid);
|
2016-07-12 09:54:00 +02:00
|
|
|
|
|
|
|
public Object getBlocksHubApi();
|
2017-07-06 07:49:56 +02:00
|
|
|
|
|
|
|
public default String getDebugInfo() {
|
|
|
|
return "";
|
|
|
|
}
|
2018-01-16 01:30:55 +01:00
|
|
|
|
|
|
|
public default FormBuilder getFormBuilder() {
|
|
|
|
return null;
|
|
|
|
}
|
2015-11-18 08:49:57 +01:00
|
|
|
}
|