From 732d70e3765fde5408d7b8cf7285b7fbffb5b049 Mon Sep 17 00:00:00 2001 From: Tom_The_Geek <23531706+Geek202@users.noreply.github.com> Date: Sun, 11 Oct 2020 21:39:08 +0100 Subject: [PATCH] Map class and methods in NarratorOptionsScreen (#1776) * Map class and methods in NarratorOptionsScreen * fix package * screen -> parent and findOptionButton -> getButtonFor --- .../gui/screen/options/GameOptionsScreen.mapping | 3 +++ .../gui/screen/options/NarratorOptionsScreen.mapping | 10 ++++++++++ .../client/gui/widget/ButtonListWidget.mapping | 1 + 3 files changed, 14 insertions(+) create mode 100644 mappings/net/minecraft/client/gui/screen/options/NarratorOptionsScreen.mapping diff --git a/mappings/net/minecraft/client/gui/screen/options/GameOptionsScreen.mapping b/mappings/net/minecraft/client/gui/screen/options/GameOptionsScreen.mapping index 83e87d7cc1..3a7d93d912 100644 --- a/mappings/net/minecraft/client/gui/screen/options/GameOptionsScreen.mapping +++ b/mappings/net/minecraft/client/gui/screen/options/GameOptionsScreen.mapping @@ -5,3 +5,6 @@ CLASS net/minecraft/class_4667 net/minecraft/client/gui/screen/options/GameOptio ARG 1 parent ARG 2 gameOptions ARG 3 title + METHOD method_31048 getHoveredButtonTooltip (Lnet/minecraft/class_353;II)Ljava/util/List; + ARG 1 mouseX + ARG 2 mouseY diff --git a/mappings/net/minecraft/client/gui/screen/options/NarratorOptionsScreen.mapping b/mappings/net/minecraft/client/gui/screen/options/NarratorOptionsScreen.mapping new file mode 100644 index 0000000000..55838adfae --- /dev/null +++ b/mappings/net/minecraft/client/gui/screen/options/NarratorOptionsScreen.mapping @@ -0,0 +1,10 @@ +CLASS net/minecraft/class_5500 net/minecraft/client/gui/screen/options/NarratorOptionsScreen + FIELD field_26679 options [Lnet/minecraft/class_316; + FIELD field_26680 narratorButton Lnet/minecraft/class_339; + FIELD field_26681 buttonList Lnet/minecraft/class_353; + METHOD (Lnet/minecraft/class_437;Lnet/minecraft/class_315;Lnet/minecraft/class_2561;[Lnet/minecraft/class_316;)V + ARG 1 parent + ARG 2 gameOptions + ARG 3 title + ARG 4 options + METHOD method_31050 updateNarratorButtonText ()V diff --git a/mappings/net/minecraft/client/gui/widget/ButtonListWidget.mapping b/mappings/net/minecraft/client/gui/widget/ButtonListWidget.mapping index f52265ee59..d8d7f5cf8b 100644 --- a/mappings/net/minecraft/client/gui/widget/ButtonListWidget.mapping +++ b/mappings/net/minecraft/client/gui/widget/ButtonListWidget.mapping @@ -9,6 +9,7 @@ CLASS net/minecraft/class_353 net/minecraft/client/gui/widget/ButtonListWidget METHOD method_29624 getHoveredButton (DD)Ljava/util/Optional; ARG 1 mouseX ARG 3 mouseY + METHOD method_31046 getButtonFor (Lnet/minecraft/class_316;)Lnet/minecraft/class_339; CLASS class_354 ButtonEntry FIELD field_18214 buttons Ljava/util/List; METHOD (Ljava/util/List;)V