Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-04 23:30:17 +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.nukkitx.protocol.bedrock.BedrockPacketCodec;
|
||||
import com.nukkitx.protocol.bedrock.v354.Bedrock_v354;
|
||||
import lombok.Getter;
|
||||
import org.geysermc.api.ChatColor;
|
||||
import org.geysermc.connector.command.GeyserCommandMap;
|
||||
import org.geysermc.connector.configuration.GeyserConfiguration;
|
||||
@ -40,12 +41,19 @@ public class GeyserConnector {
|
||||
|
||||
private static GeyserConnector instance;
|
||||
|
||||
private boolean shuttingDown = false;
|
||||
|
||||
@Getter
|
||||
private GeyserLogger logger;
|
||||
|
||||
@Getter
|
||||
private GeyserCommandMap commandMap;
|
||||
|
||||
@Getter
|
||||
private GeyserConfiguration config;
|
||||
|
||||
@Getter
|
||||
private boolean shuttingDown = false;
|
||||
|
||||
@Getter
|
||||
private final ScheduledExecutorService generalThreadPool;
|
||||
|
||||
public static void main(String[] args) {
|
||||
@ -88,22 +96,6 @@ public class GeyserConnector {
|
||||
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() {
|
||||
logger.info("Shutting down connector.");
|
||||
shuttingDown = true;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren