aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-08 23:12:38 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-08 23:12:38 +0900
commita00a2cfed6980a5f71c40a3df1cb5cb69e87f17d (patch)
tree98db3fe82d04fad84a64cf24ceff8c75bb982807 /src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
parentf6a3ae6948b940d0bcc2deddde37cdf2349cfa46 (diff)
downloadSkyblock-Dungeons-Guide-a00a2cfed6980a5f71c40a3df1cb5cb69e87f17d.tar.gz
Skyblock-Dungeons-Guide-a00a2cfed6980a5f71c40a3df1cb5cb69e87f17d.tar.bz2
Skyblock-Dungeons-Guide-a00a2cfed6980a5f71c40a3df1cb5cb69e87f17d.zip
interesting
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java44
1 files changed, 43 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
index eb728271..2710a5b2 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
@@ -1,13 +1,25 @@
package kr.syeyoung.dungeonsguide;
import com.google.common.collect.Sets;
+import kr.syeyoung.dungeonsguide.commands.*;
import kr.syeyoung.dungeonsguide.dungeon.DungeonContext;
+import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry;
import kr.syeyoung.dungeonsguide.utils.TextUtils;
import lombok.Getter;
import lombok.Setter;
import net.minecraft.client.Minecraft;
import net.minecraft.scoreboard.*;
-
+import net.minecraftforge.client.ClientCommandHandler;
+import net.minecraftforge.common.MinecraftForge;
+
+import javax.crypto.BadPaddingException;
+import javax.crypto.IllegalBlockSizeException;
+import javax.crypto.NoSuchPaddingException;
+import java.io.File;
+import java.io.IOException;
+import java.security.InvalidAlgorithmParameterException;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
import java.util.Collection;
import java.util.Set;
import java.util.regex.Matcher;
@@ -28,6 +40,36 @@ public class SkyblockStatus {
private final Pattern SERVER_BRAND_PATTERN = Pattern.compile("(.+) <- (?:.+)");
+ public SkyblockStatus() {
+ MinecraftForge.EVENT_BUS.register(new EventListener());
+ CommandEditRoom cc = new CommandEditRoom();
+ ClientCommandHandler.instance.registerCommand(cc);
+ MinecraftForge.EVENT_BUS.register(cc);
+ ClientCommandHandler.instance.registerCommand(new CommandLoadData());
+ ClientCommandHandler.instance.registerCommand(new CommandSaveData());
+ ClientCommandHandler.instance.registerCommand(new CommandToggleDebug());
+ ClientCommandHandler.instance.registerCommand(new CommandWhatYearIsIt());
+
+ try {
+ DungeonRoomInfoRegistry.loadAll();
+ } catch (BadPaddingException e) {
+ e.printStackTrace();
+ } catch (InvalidAlgorithmParameterException e) {
+ e.printStackTrace();
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (IllegalBlockSizeException e) {
+ e.printStackTrace();
+ } catch (NoSuchPaddingException e) {
+ e.printStackTrace();
+ } catch (InvalidKeyException e) {
+ e.printStackTrace();
+ }
+
+ Keybinds.register();
+ }
public boolean isOnHypixel() {