use of mezz.jei.input.InputHandler in project GregTech by GregTechCEu.
the class GTJeiPlugin method setupInputHandler.
public static void setupInputHandler() {
try {
Field inputHandlerField = Internal.class.getDeclaredField("inputHandler");
inputHandlerField.setAccessible(true);
InputHandler inputHandler = (InputHandler) inputHandlerField.get(null);
List<IShowsRecipeFocuses> showsRecipeFocuses = ObfuscationReflectionHelper.getPrivateValue(InputHandler.class, inputHandler, "showsRecipeFocuses");
showsRecipeFocuses.add(new MultiblockInfoRecipeFocusShower());
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations