diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-13 22:05:09 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-13 22:05:09 +0900 |
commit | 84a71ed7bc03afbdfab00100b780117de354c83b (patch) | |
tree | b74a005c5c3df99d3a23e70c9a1ed1159705dee4 /src/main/java/kr/syeyoung/dungeonsguide/e.java | |
parent | 2b869989ec69bfb0f5ca54409844ec5720b6a6fd (diff) | |
download | Skyblock-Dungeons-Guide-84a71ed7bc03afbdfab00100b780117de354c83b.tar.gz Skyblock-Dungeons-Guide-84a71ed7bc03afbdfab00100b780117de354c83b.tar.bz2 Skyblock-Dungeons-Guide-84a71ed7bc03afbdfab00100b780117de354c83b.zip |
semi-obfuscate
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/e.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/e.java | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/e.java b/src/main/java/kr/syeyoung/dungeonsguide/e.java new file mode 100644 index 00000000..17d3aa26 --- /dev/null +++ b/src/main/java/kr/syeyoung/dungeonsguide/e.java @@ -0,0 +1,85 @@ +package kr.syeyoung.dungeonsguide; + +import kr.syeyoung.dungeonsguide.commands.*; +import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry; +import lombok.Getter; +import net.minecraft.client.Minecraft; +import net.minecraft.util.IChatComponent; +import net.minecraftforge.client.ClientCommandHandler; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; +import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; + +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; + +public class e implements c { + + private SkyblockStatus skyblockStatus; + + private static e dungeonsGuide; + + public static final boolean DEBUG = false; + + @Getter + private b authenticator; + public e(b authenticator) { + this.authenticator = authenticator; + } + + public static void sendDebugChat(IChatComponent iChatComponent) { + if (DEBUG) + Minecraft.getMinecraft().thePlayer.addChatMessage(iChatComponent); + } + + public void init(FMLInitializationEvent event) + { + dungeonsGuide = this; + skyblockStatus = new SkyblockStatus(); + + MinecraftForge.EVENT_BUS.register(new EventListener()); + ClientCommandHandler.instance.registerCommand(new CommandLoadData()); + ClientCommandHandler.instance.registerCommand(new CommandSaveData()); + + 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 void pre(FMLPreInitializationEvent event) { + configDir = new File(event.getModConfigurationDirectory(),"z"); + } + + @Getter + private File configDir; + + + public SkyblockStatus getSkyblockStatus() { + return (SkyblockStatus) skyblockStatus; + } + + public static e getDungeonsGuide() { + return dungeonsGuide; + } +} |