Search in sources :

Example 1 with IShowsRecipeFocuses

use of mezz.jei.input.IShowsRecipeFocuses 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();
    }
}
Also used : Field(java.lang.reflect.Field) InputHandler(mezz.jei.input.InputHandler) IShowsRecipeFocuses(mezz.jei.input.IShowsRecipeFocuses)

Aggregations

Field (java.lang.reflect.Field)1 IShowsRecipeFocuses (mezz.jei.input.IShowsRecipeFocuses)1 InputHandler (mezz.jei.input.InputHandler)1