From e75b6d82357f13de66fe99e815274f0911ec6f31 Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Mon, 8 Jul 2019 14:19:41 -0500 Subject: [PATCH] Use lombok for getters --- .../geysermc/connector/GeyserConnector.java | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java index e425456fe..c782c003b 100644 --- a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java +++ b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java @@ -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;