Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Use lombok for getters
Dieser Commit ist enthalten in:
Ursprung
7afae0ae02
Commit
e75b6d8235
@ -18,6 +18,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|||||||
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
|
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
|
||||||
import com.nukkitx.protocol.bedrock.BedrockPacketCodec;
|
import com.nukkitx.protocol.bedrock.BedrockPacketCodec;
|
||||||
import com.nukkitx.protocol.bedrock.v354.Bedrock_v354;
|
import com.nukkitx.protocol.bedrock.v354.Bedrock_v354;
|
||||||
|
import lombok.Getter;
|
||||||
import org.geysermc.api.ChatColor;
|
import org.geysermc.api.ChatColor;
|
||||||
import org.geysermc.connector.command.GeyserCommandMap;
|
import org.geysermc.connector.command.GeyserCommandMap;
|
||||||
import org.geysermc.connector.configuration.GeyserConfiguration;
|
import org.geysermc.connector.configuration.GeyserConfiguration;
|
||||||
@ -40,12 +41,19 @@ public class GeyserConnector {
|
|||||||
|
|
||||||
private static GeyserConnector instance;
|
private static GeyserConnector instance;
|
||||||
|
|
||||||
private boolean shuttingDown = false;
|
@Getter
|
||||||
|
|
||||||
private GeyserLogger logger;
|
private GeyserLogger logger;
|
||||||
|
|
||||||
|
@Getter
|
||||||
private GeyserCommandMap commandMap;
|
private GeyserCommandMap commandMap;
|
||||||
|
|
||||||
|
@Getter
|
||||||
private GeyserConfiguration config;
|
private GeyserConfiguration config;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
private boolean shuttingDown = false;
|
||||||
|
|
||||||
|
@Getter
|
||||||
private final ScheduledExecutorService generalThreadPool;
|
private final ScheduledExecutorService generalThreadPool;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@ -88,22 +96,6 @@ public class GeyserConnector {
|
|||||||
commandMap = new GeyserCommandMap(this);
|
commandMap = new GeyserCommandMap(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ScheduledExecutorService getGeneralThreadPool() {
|
|
||||||
return generalThreadPool;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GeyserCommandMap getCommandMap() {
|
|
||||||
return commandMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
public GeyserLogger getLogger() {
|
|
||||||
return logger;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isShuttingDown() {
|
|
||||||
return shuttingDown;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
logger.info("Shutting down connector.");
|
logger.info("Shutting down connector.");
|
||||||
shuttingDown = true;
|
shuttingDown = true;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren