mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Start work on inventory/item translators
This commit is contained in:
parent
77ea4eda60
commit
635a26dd60
19 changed files with 3706 additions and 5 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue