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());
}
}
Aggregations