Advertisement
yugecin

Menu.java

Aug 3rd, 2012
1,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.06 KB | None | 0 0
  1. package net.minecraft.yugecin; //change this to your package if needed
  2.  
  3. import java.awt.MouseInfo;
  4. import org.lwjgl.input.Keyboard;
  5. import org.lwjgl.opengl.GL11;
  6.  
  7. import net.minecraft.client.Minecraft;
  8. import net.minecraft.src.GuiScreen;
  9. import net.minecraft.src.NetworkManager;
  10.  
  11. public class Menu extends GuiScreen{
  12.    
  13.     public int x;
  14.     public int y;
  15.     private Minecraft mc;
  16.    
  17.     public Menu(Minecraft minecraft){
  18.         x = MouseInfo.getPointerInfo().getLocation().x;
  19.         y = MouseInfo.getPointerInfo().getLocation().y;
  20.         mc = minecraft;
  21.         height = mc.displayHeight;
  22.         width = mc.displayWidth;
  23.     }
  24.    
  25.     public boolean doesGuiPauseGame(){
  26.         return false;
  27.     }
  28.    
  29.     public void initGui(){
  30.         Keyboard.enableRepeatEvents(true);
  31.     }
  32.    
  33.     public void onGuiClosed(){
  34.         Keyboard.enableRepeatEvents(true);
  35.     }
  36.    
  37.     protected void keyTyped(char c, int i){
  38.         if(i == 1){
  39.             mc.displayGuiScreen(null);
  40.             return;
  41.         }
  42.     }
  43.    
  44.     public void drawScreen(int i, int j, float f){ 
  45.     }
  46.    
  47.     protected void mouseClicked(int i, int j, int k){
  48.         //if(  <= i &&  <= j &&  >= i &&  >= j)
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement