aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-07-07 20:35:21 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-07-07 20:35:21 -0400
commitdabee21244cdcacc9b49b2ee0d006876970e6001 (patch)
tree05c0064e2f5287cf2e82a9debdbad49717de3954 /src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java
parent81f11c4bdfd7444440f1c17315c40a57796db419 (diff)
downloadSkyblockHud-Death-Defied-dabee21244cdcacc9b49b2ee0d006876970e6001.tar.gz
SkyblockHud-Death-Defied-dabee21244cdcacc9b49b2ee0d006876970e6001.tar.bz2
SkyblockHud-Death-Defied-dabee21244cdcacc9b49b2ee0d006876970e6001.zip
Format because yes
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java b/src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java
index 897c088..9f0a22d 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/commands/Commands.java
@@ -8,6 +8,8 @@ import com.thatgravyboat.skyblockhud.core.GuiScreenElementWrapper;
import com.thatgravyboat.skyblockhud.handlers.MapHandler;
import com.thatgravyboat.skyblockhud.location.LocationHandler;
import com.thatgravyboat.skyblockhud.playerstats.ActionBarParsing;
+import java.awt.*;
+import java.awt.datatransfer.StringSelection;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.boss.BossStatus;
import net.minecraft.util.ChatComponentText;
@@ -15,9 +17,6 @@ import net.minecraft.util.EnumChatFormatting;
import net.minecraftforge.client.ClientCommandHandler;
import org.apache.commons.lang3.StringUtils;
-import java.awt.*;
-import java.awt.datatransfer.StringSelection;
-
public class Commands {
private static boolean devMode = false;
@@ -33,7 +32,6 @@ public class Commands {
};
private static final SimpleSubCommand devCommand = new SimpleSubCommand("sbhdev", ImmutableSet.of("copyBossBar", "copyScoreboard", "copyActionBar")) {
-
@Override
void processSubCommand(ICommandSender sender, String subCommand, String[] args) {
StringSelection clipboard = null;
@@ -52,16 +50,7 @@ public class Commands {
}
if (clipboard != null) {
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(clipboard, clipboard);
- sender.addChatMessage(new ChatComponentText(
- "[" +
- EnumChatFormatting.RED +
- EnumChatFormatting.BOLD +
- "SkyBlockHud" +
- EnumChatFormatting.RESET +
- "] : " +
- EnumChatFormatting.GRAY +
- "Info copied to clipboard!"
- ));
+ sender.addChatMessage(new ChatComponentText("[" + EnumChatFormatting.RED + EnumChatFormatting.BOLD + "SkyBlockHud" + EnumChatFormatting.RESET + "] : " + EnumChatFormatting.GRAY + "Info copied to clipboard!"));
}
}
@@ -80,8 +69,7 @@ public class Commands {
"sbhmap",
new SimpleCommand.ProcessCommandRunnable() {
public void processCommand(ICommandSender sender, String[] args) {
- if (LocationHandler.getCurrentLocation().getCategory().getMap() != null && SkyblockHud.hasSkyblockScoreboard())
- SkyblockHud.screenToOpen = new MapHandler.MapScreen();
+ if (LocationHandler.getCurrentLocation().getCategory().getMap() != null && SkyblockHud.hasSkyblockScoreboard()) SkyblockHud.screenToOpen = new MapHandler.MapScreen();
}
}
);