diff options
| author | Danielshe <shekwancheung0528@gmail.com> | 2019-10-24 23:21:57 +0800 |
|---|---|---|
| committer | Danielshe <shekwancheung0528@gmail.com> | 2019-10-24 23:21:57 +0800 |
| commit | f955ea0ba0891c28967552d07aae6a7b9389673c (patch) | |
| tree | b9e8c22575f2b2a9ca585b5a02944fbffc443454 /src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java | |
| parent | 1c116ba2387262a852554d1a89427ce6fbcbc452 (diff) | |
| download | RoughlyEnoughItems-f955ea0ba0891c28967552d07aae6a7b9389673c.tar.gz RoughlyEnoughItems-f955ea0ba0891c28967552d07aae6a7b9389673c.tar.bz2 RoughlyEnoughItems-f955ea0ba0891c28967552d07aae6a7b9389673c.zip | |
Close #176
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java b/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java index fba9c0e82..748869a3c 100644 --- a/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java @@ -55,8 +55,9 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer { 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 Identifier copyRecipeIdentifierKeybind = new Identifier("roughlyenoughitems", "copy_recipe_id"); private final Map<String, String> modNameCache = Maps.newHashMap(); - public FabricKeyBinding recipe, usage, hide, previousPage, nextPage, focusSearchField; + public FabricKeyBinding recipe, usage, hide, previousPage, nextPage, focusSearchField, copyRecipeIdentifier; @Override public String getFormattedModFromItem(Item item) { @@ -105,6 +106,11 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer { } @Override + public FabricKeyBinding getCopyRecipeIdentifierKeyBinding() { + return copyRecipeIdentifier; + } + + @Override public String getModFromItem(Item item) { if (item.equals(Items.AIR)) return ""; @@ -265,6 +271,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer { 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()); + KeyBindingRegistryImpl.INSTANCE.register(copyRecipeIdentifier = FabricKeyBinding.Builder.create(copyRecipeIdentifierKeybind, InputUtil.Type.KEYSYM, -1, category).build()); } } |
