Start work on inventory/item translators

This commit is contained in:
RednedEpic 2019-07-29 17:20:48 -05:00
parent 77ea4eda60
commit 635a26dd60
19 changed files with 3706 additions and 5 deletions

View file

@ -29,6 +29,8 @@ import org.geysermc.api.command.CommandMap;
import org.geysermc.api.logger.Logger;
import org.geysermc.api.plugin.PluginManager;
import java.util.concurrent.ScheduledExecutorService;
public interface Connector {
/**
@ -52,6 +54,13 @@ public interface Connector {
*/
PluginManager getPluginManager();
/**
* Returns the general thread pool
*
* @return the general thread pool
*/
ScheduledExecutorService getGeneralThreadPool();
/**
* Shuts down the connector
*/

View file

@ -29,6 +29,8 @@ import org.geysermc.api.command.CommandMap;
import org.geysermc.api.logger.Logger;
import org.geysermc.api.plugin.PluginManager;
import java.util.concurrent.ScheduledExecutorService;
public class Geyser {
private static Connector connector;
@ -77,4 +79,8 @@ public class Geyser {
public static CommandMap getCommandMap() {
return connector.getCommandMap();
}
public static ScheduledExecutorService getGeneralThreadPool() {
return connector.getGeneralThreadPool();
}
}