forked from RepoMirrors/kami-blue
30 lines
682 B
Java
30 lines
682 B
Java
package me.zeroeightsix.kami.module.modules;
|
|
|
|
import me.zeroeightsix.kami.gui.kami.DisplayGuiScreen;
|
|
import me.zeroeightsix.kami.module.Module;
|
|
import org.lwjgl.input.Keyboard;
|
|
|
|
/**
|
|
* Created by 086 on 23/08/2017.
|
|
*/
|
|
@Module.Info(
|
|
name = "clickGUI",
|
|
description = "Opens the Click GUI",
|
|
category = Module.Category.HIDDEN
|
|
)
|
|
public class ClickGUI extends Module {
|
|
|
|
public ClickGUI() {
|
|
getBind().setKey(Keyboard.KEY_Y);
|
|
}
|
|
|
|
@Override
|
|
protected void onEnable() {
|
|
if (!(mc.currentScreen instanceof DisplayGuiScreen)) {
|
|
mc.displayGuiScreen(new DisplayGuiScreen(mc.currentScreen));
|
|
}
|
|
disable();
|
|
}
|
|
|
|
}
|