LucaHD

DevClient (Main)

Apr 11th, 2021
500
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class DevClient {
  2.  
  3.     public static String name = "DevClient", version = "1.0";
  4.  
  5.     public static boolean devMode = true;
  6.  
  7.     public static DevClient instance;
  8.  
  9.     private static HUDManager hudManager;
  10.  
  11.     public void start() throws InterruptedException {
  12.  
  13.         instance = this;
  14.        
  15.         EventManager.register(this);
  16.  
  17.         if (devMode == true) {
  18.  
  19.             SplashProgress.setProgress(1, "DevClient - Installing DevClient Mod Menu!");
  20.  
  21.             Thread.sleep(3000);
  22.  
  23.             SplashProgress.setProgress(2, "DevClient - Installing DevClient - v1.0 - Development Mode!");
  24.  
  25.             Thread.sleep(3000);
  26.  
  27.             System.out.println("Starting " + name + " - version " + version + " - Development Mode");
  28.             Display.setTitle(name + " v" + version + " - Development Mode");
  29.  
  30.             SplashProgress.setProgress(3, "DevClient - Starting DevClient - v1.0 - Development Mode!");
  31.  
  32.             Thread.sleep(4000);
  33.  
  34.         } else {
  35.  
  36.             System.out.println("Starting " + name + " - version " + version);
  37.             Display.setTitle(name + " v" + version);
  38.  
  39.         }
  40.     }
  41.  
  42.     public void register() {
  43.  
  44.         EventManager.register(this);
  45.  
  46.         hudManager = HUDManager.getInstance();
  47.         ModInstances.register(hudManager);
  48.  
  49.     }
  50.  
  51.     @EventTarget
  52.     public void onTick(ClientTickEvent e) {
  53.         if (Minecraft.getMinecraft().gameSettings.DevClientMods.isPressed()) {
  54.             hudManager.openConfigScreen();
  55.         }
  56.     }
  57.  
  58.     public static DevClient getInstance() {
  59.         return instance;
  60.     }
  61. }
  62.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×