Search in sources :

Example 1 with GuiMiningRecords

use of cavern.client.gui.GuiMiningRecords in project Cavern2 by kegare.

the class ClientEventHooks method onKeyInput.

@SubscribeEvent
public void onKeyInput(KeyInputEvent event) {
    if (!Keyboard.getEventKeyState()) {
        return;
    }
    Minecraft mc = FMLClientHandler.instance().getClient();
    if (mc.player == null) {
        return;
    }
    int key = Keyboard.getEventKey();
    if (CaveKeyBindings.KEY_MINING_RECORDS.isActiveAndMatches(key)) {
        mc.displayGuiScreen(new GuiMiningRecords());
    }
}
Also used : GuiMiningRecords(cavern.client.gui.GuiMiningRecords) Minecraft(net.minecraft.client.Minecraft) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

GuiMiningRecords (cavern.client.gui.GuiMiningRecords)1 Minecraft (net.minecraft.client.Minecraft)1 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)1