aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-18 23:45:57 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-18 23:45:57 +0800
commit69dff6338368fe46dcde00932b3799d8d301f3a3 (patch)
treefdec772f69fa5771de51f56fb7218d9cb64ac6b9 /src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
parent5a75d9d47c41cacc7dc7c695ce7f7cd840f51991 (diff)
downloadRoughlyEnoughItems-69dff6338368fe46dcde00932b3799d8d301f3a3.tar.gz
RoughlyEnoughItems-69dff6338368fe46dcde00932b3799d8d301f3a3.tar.bz2
RoughlyEnoughItems-69dff6338368fe46dcde00932b3799d8d301f3a3.zip
close stuff and add focus keybind
Close #102 Close #100 Close #29
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java b/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
index 268cbf578..54485fd3f 100644
--- a/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
+++ b/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
@@ -52,8 +52,9 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
private final Identifier hideKeybind = new Identifier("roughlyenoughitems", "hide_keybind");
private final Identifier previousPageKeybind = new Identifier("roughlyenoughitems", "previous_page");
private final Identifier nextPageKeybind = new Identifier("roughlyenoughitems", "next_page");
+ private final Identifier focusSearchFieldKeybind = new Identifier("roughlyenoughitems", "focus_search");
private final Map<String, String> modNameCache = Maps.newHashMap();
- public FabricKeyBinding recipe, usage, hide, previousPage, nextPage;
+ public FabricKeyBinding recipe, usage, hide, previousPage, nextPage,focusSearchField;
public String getFormattedModNoItalicFromItem(Item item) {
String mod = getModFromItem(item);
@@ -104,6 +105,11 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
}
@Override
+ public FabricKeyBinding getFocusSearchFieldKeyBinding() {
+ return focusSearchField;
+ }
+
+ @Override
public String getModFromItem(Item item) {
if (item.equals(Items.AIR))
return "";
@@ -260,6 +266,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
KeyBindingRegistryImpl.INSTANCE.register(hide = FabricKeyBinding.Builder.create(hideKeybind, InputUtil.Type.KEYSYM, 79, category).build());
KeyBindingRegistryImpl.INSTANCE.register(previousPage = FabricKeyBinding.Builder.create(previousPageKeybind, InputUtil.Type.KEYSYM, -1, category).build());
KeyBindingRegistryImpl.INSTANCE.register(nextPage = FabricKeyBinding.Builder.create(nextPageKeybind, InputUtil.Type.KEYSYM, -1, category).build());
+ KeyBindingRegistryImpl.INSTANCE.register(focusSearchField = FabricKeyBinding.Builder.create(focusSearchFieldKeybind, InputUtil.Type.KEYSYM, -1, category).build());
}
}