From 977350c12271246c2f220761fb33d58bab872357 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 10 Dec 2019 23:31:09 +0800 Subject: Semi working favorites --- src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java') diff --git a/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java b/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java index a4f6cfe16..7ebcdea23 100644 --- a/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java @@ -54,6 +54,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer { private final Identifier nextPageKeybind = new Identifier("roughlyenoughitems", "next_page"); private final Identifier focusSearchFieldKeybind = new Identifier("roughlyenoughitems", "focus_search"); private final Identifier copyRecipeIdentifierKeybind = new Identifier("roughlyenoughitems", "copy_recipe_id"); + private final Identifier favoriteEntryKeybind = new Identifier("roughlyenoughitems", "favorite_entry"); private final Map modNameCache = Maps.newHashMap(); public FabricKeyBinding recipe, usage, hide, previousPage, nextPage, focusSearchField, copyRecipeIdentifier; @@ -73,6 +74,13 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer { return Formatting.BLUE.toString() + Formatting.ITALIC.toString() + mod; } + @Override + public FabricKeyBinding[] getREIKeyBindings() { + return new FabricKeyBinding[]{ + recipe, usage, hide, previousPage, nextPage, focusSearchField, copyRecipeIdentifier + }; + } + @Override public FabricKeyBinding getRecipeKeyBinding() { return recipe; -- cgit