AGMPenguin

ClientHooks

Sep 25th, 2023
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | Source Code | 0 0
  1. package net.agmpenguin.mcphone.client;
  2.  
  3. import net.agmpenguin.mcphone.client.screen.PhoneScreen;
  4. import net.minecraft.client.Minecraft;
  5.  
  6. public class ClientHooks {
  7.     public static void openScreen() {
  8.         try {
  9.             Minecraft.getInstance().setScreen(new PhoneScreen());
  10.         } catch(Exception e) {
  11.             return;
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment