Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit a54a781

Browse files
committed
renamed
Signed-off-by: shedaniel <daniel@shedaniel.me>
1 parent 08952fc commit a54a781

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

patchwork-gui/src/main/java/com/patchworkmc/mixin/gui/MixinKeyboard.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,26 @@ private void postKeyEvent(int i, boolean[] bls, ParentElement element, int key,
7575
}
7676

7777
@Inject(method = "method_1458", at = @At("HEAD"), cancellable = true)
78-
private static void method_1458(Element element, int character, int mods, CallbackInfo info) {
78+
private static void preCharTyped(Element element, int character, int mods, CallbackInfo info) {
7979
if (MinecraftForge.EVENT_BUS.post(new GuiScreenEvent.KeyboardCharTypedEvent.Pre((Screen) element, (char) character, mods))) {
8080
info.cancel();
8181
}
8282
}
8383

8484
@Redirect(method = "method_1458", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/Element;charTyped(CI)Z"))
85-
private static boolean method_1458(Element element, char character, int mods) {
85+
private static boolean charTyped(Element element, char character, int mods) {
8686
return element.charTyped(character, mods) || MinecraftForge.EVENT_BUS.post(new GuiScreenEvent.KeyboardCharTypedEvent.Post((Screen) element, character, mods));
8787
}
8888

8989
@Inject(method = "method_1473", at = @At("HEAD"), cancellable = true)
90-
private static void method_1473(Element element, char character, int mods, CallbackInfo info) {
90+
private static void preCharTyped(Element element, char character, int mods, CallbackInfo info) {
9191
if (MinecraftForge.EVENT_BUS.post(new GuiScreenEvent.KeyboardCharTypedEvent.Pre((Screen) element, (char) character, mods))) {
9292
info.cancel();
9393
}
9494
}
9595

9696
@Redirect(method = "method_1473", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/Element;charTyped(CI)Z"))
97-
private static boolean method_1473(Element element, char character, int mods) {
97+
private static boolean charTyped2(Element element, char character, int mods) {
9898
return element.charTyped(character, mods) || MinecraftForge.EVENT_BUS.post(new GuiScreenEvent.KeyboardCharTypedEvent.Post((Screen) element, character, mods));
9999
}
100100
}

0 commit comments

Comments
 (0)