Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.yugecin; //change this to your package if needed
- import java.awt.MouseInfo;
- import org.lwjgl.input.Keyboard;
- import org.lwjgl.opengl.GL11;
- import net.minecraft.client.Minecraft;
- import net.minecraft.src.GuiScreen;
- import net.minecraft.src.NetworkManager;
- public class Menu extends GuiScreen{
- public int x;
- public int y;
- private Minecraft mc;
- public Menu(Minecraft minecraft){
- x = MouseInfo.getPointerInfo().getLocation().x;
- y = MouseInfo.getPointerInfo().getLocation().y;
- mc = minecraft;
- height = mc.displayHeight;
- width = mc.displayWidth;
- }
- public boolean doesGuiPauseGame(){
- return false;
- }
- public void initGui(){
- Keyboard.enableRepeatEvents(true);
- }
- public void onGuiClosed(){
- Keyboard.enableRepeatEvents(true);
- }
- protected void keyTyped(char c, int i){
- if(i == 1){
- mc.displayGuiScreen(null);
- return;
- }
- }
- public void drawScreen(int i, int j, float f){
- }
- protected void mouseClicked(int i, int j, int k){
- //if( <= i && <= j && >= i && >= j)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement