Map GUI stuff (#2762)

* Map GUI stuff

* Apply suggestions from code review

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
This commit is contained in:
enbrain 2021-10-16 22:01:23 +09:00 committed by GitHub
parent b71c0597b6
commit 677a3ebc13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 38 additions and 3 deletions

View File

@ -1,5 +1,5 @@
CLASS net/minecraft/class_334 net/minecraft/client/gui/ClientChatListener
METHOD method_1794 onChatMessage (Lnet/minecraft/class_2556;Lnet/minecraft/class_2561;Ljava/util/UUID;)V
ARG 1 messageType
ARG 1 type
ARG 2 message
ARG 3 sender

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_751 net/minecraft/client/gui/CubeMapRenderer
FIELD field_32680 FACES_COUNT I
FIELD field_3952 faces [Lnet/minecraft/class_2960;
METHOD <init> (Lnet/minecraft/class_2960;)V
ARG 1 faces

View File

@ -185,6 +185,7 @@ CLASS net/minecraft/class_332 net/minecraft/client/gui/DrawableHelper
METHOD method_25305 getZOffset ()I
METHOD method_27533 fillGradient (Lnet/minecraft/class_1159;Lnet/minecraft/class_287;IIIIIII)V
ARG 0 matrix
ARG 1 builder
ARG 2 startX
ARG 3 startY
ARG 4 endX

View File

@ -6,6 +6,8 @@ CLASS net/minecraft/class_4069 net/minecraft/client/gui/ParentElement
ARG 3 mouseY
METHOD method_20082 (DDDLnet/minecraft/class_364;)Z
ARG 6 element
METHOD method_20083 (DDILnet/minecraft/class_364;)Z
ARG 5 element
METHOD method_20085 setInitialFocus (Lnet/minecraft/class_364;)V
ARG 1 element
METHOD method_20086 focusOn (Lnet/minecraft/class_364;)V

View File

@ -3,6 +3,8 @@ CLASS net/minecraft/class_337 net/minecraft/client/gui/hud/BossBarHud
FIELD field_2059 BARS_TEXTURE Lnet/minecraft/class_2960;
FIELD field_2060 bossBars Ljava/util/Map;
FIELD field_32177 WIDTH I
FIELD field_32178 HEIGHT I
FIELD field_32179 NOTCHED_BAR_OVERLAY_V I
METHOD <init> (Lnet/minecraft/class_310;)V
ARG 1 client
METHOD method_1795 handlePacket (Lnet/minecraft/class_2629;)V

View File

@ -8,6 +8,7 @@ CLASS net/minecraft/class_338 net/minecraft/client/gui/hud/ChatHud
FIELD field_2067 hasUnreadNewMessages Z
FIELD field_23934 messageQueue Ljava/util/Deque;
FIELD field_23935 lastMessageAddedTime J
FIELD field_32180 MAX_MESSAGES I
METHOD <init> (Lnet/minecraft/class_310;)V
ARG 1 client
METHOD method_1802 scroll (D)V

View File

@ -28,6 +28,8 @@ CLASS net/minecraft/class_340 net/minecraft/client/gui/hud/DebugHud
ARG 0 bytes
METHOD method_1839 getRightText ()Ljava/util/List;
METHOD method_1840 getWorld ()Lnet/minecraft/class_1937;
METHOD method_1841 (Lnet/minecraft/class_1132;)Ljava/util/Optional;
ARG 1 server
METHOD method_1842 resetChunk ()V
METHOD method_1843 interpolateColor (IIF)I
ARG 1 color1
@ -43,5 +45,13 @@ CLASS net/minecraft/class_340 net/minecraft/client/gui/hud/DebugHud
ARG 1 matrices
METHOD method_20455 (Ljava/util/EnumMap;)V
ARG 0 types
METHOD method_20540 (Lnet/minecraft/class_2791;)Lnet/minecraft/class_2818;
ARG 0 chunk
METHOD method_20541 (Lcom/mojang/datafixers/util/Either;)Lnet/minecraft/class_2818;
ARG 0 either
METHOD method_20542 (Lnet/minecraft/class_3193$class_3724;)Lnet/minecraft/class_2818;
ARG 0 unloaded
METHOD method_20603 getServerWorld ()Lnet/minecraft/class_3218;
METHOD method_27870 (Lit/unimi/dsi/fastutil/objects/Object2IntMap;Lnet/minecraft/class_1311;)Ljava/lang/String;
ARG 1 group
METHOD method_27871 getServerWorldDebugString ()Ljava/lang/String;

View File

@ -4,6 +4,8 @@ CLASS net/minecraft/class_365 net/minecraft/client/gui/hud/SpectatorHud
FIELD field_2199 SPECTATOR_TEXTURE Lnet/minecraft/class_2960;
FIELD field_2200 spectatorMenu Lnet/minecraft/class_531;
FIELD field_2201 client Lnet/minecraft/class_310;
FIELD field_32215 FADE_OUT_DELAY J
FIELD field_32216 FADE_OUT_DURATION J
METHOD <init> (Lnet/minecraft/class_310;)V
ARG 1 client
METHOD method_1975 renderSpectatorMenu (Lnet/minecraft/class_4587;FIILnet/minecraft/class_539;)V

View File

@ -5,3 +5,5 @@ CLASS net/minecraft/class_537 net/minecraft/client/gui/hud/spectator/SpectatorMe
ARG 1 menu
METHOD method_2784 renderIcon (Lnet/minecraft/class_4587;FI)V
ARG 1 matrices
ARG 2 brightness
ARG 3 alpha

View File

@ -6,3 +6,5 @@ CLASS net/minecraft/class_540 net/minecraft/client/gui/hud/spectator/TeamTelepor
FIELD field_3274 scoreboardEntries Ljava/util/List;
FIELD field_3275 team Lnet/minecraft/class_268;
FIELD field_3276 skinId Lnet/minecraft/class_2960;
METHOD <init> (Lnet/minecraft/class_268;)V
ARG 1 team

View File

@ -25,6 +25,7 @@ CLASS net/minecraft/class_5682 net/minecraft/client/gui/tooltip/BundleTooltipCom
ARG 2 x
ARG 3 y
ARG 4 z
ARG 5 sprite
METHOD method_33289 getColumns ()I
METHOD method_33290 getRows ()I
CLASS class_5771 Sprite

View File

@ -10,6 +10,8 @@ CLASS net/minecraft/class_5684 net/minecraft/client/gui/tooltip/TooltipComponent
ARG 1 textRenderer
ARG 2 x
ARG 3 y
ARG 4 matrix
ARG 5 vertexConsumers
METHOD method_32666 drawItems (Lnet/minecraft/class_327;IILnet/minecraft/class_4587;Lnet/minecraft/class_918;I)V
ARG 1 textRenderer
ARG 2 x

View File

@ -110,6 +110,7 @@ CLASS net/minecraft/class_350 net/minecraft/client/gui/widget/EntryListWidget
COMMENT Moves the selection in the specified direction until the predicate returns true.
ARG 1 direction
COMMENT the direction to move the selection
ARG 2 predicate
METHOD method_30014 (Lnet/minecraft/class_350$class_351;)Z
ARG 0 entry
METHOD method_30015 ensureSelectedEntryVisible ()V

View File

@ -11,6 +11,7 @@ CLASS net/minecraft/class_347 net/minecraft/client/gui/widget/LockButtonWidget
FIELD field_2134 v I
FIELD field_2135 u I
METHOD <init> (Ljava/lang/String;III)V
ARG 1 v
ARG 3 u
ARG 4 v
METHOD method_1897 getU ()I
METHOD method_1898 getV ()I

View File

@ -11,13 +11,17 @@ CLASS net/minecraft/class_342 net/minecraft/client/gui/widget/TextFieldWidget
FIELD field_2101 selectionEnd I
FIELD field_2102 selectionStart I
FIELD field_2103 firstCharacterIndex I
COMMENT The index of the leftmost character that is rendered on a screen.
FIELD field_2104 textPredicate Ljava/util/function/Predicate;
FIELD field_2105 textRenderer Lnet/minecraft/class_327;
FIELD field_2106 suggestion Ljava/lang/String;
FIELD field_2107 focusedTicks I
FIELD field_2108 maxLength I
FIELD field_32196 DEFAULT_EDITABLE_COLOR I
FIELD field_32199 UNDERSCORE Ljava/lang/String;
FIELD field_32198 VERTICAL_CURSOR_COLOR I
FIELD field_32199 HORIZONTAL_CURSOR Ljava/lang/String;
FIELD field_32202 BORDER_COLOR I
FIELD field_32203 BACKGROUND_COLOR I
METHOD <init> (Lnet/minecraft/class_327;IIIILnet/minecraft/class_2561;)V
ARG 1 textRenderer
ARG 2 x
@ -73,6 +77,9 @@ CLASS net/minecraft/class_342 net/minecraft/client/gui/widget/TextFieldWidget
ARG 2 cursorPosition
METHOD method_1870 setCursorToStart ()V
METHOD method_1872 setCursorToEnd ()V
METHOD method_1873 (Ljava/lang/String;Ljava/lang/Integer;)Lnet/minecraft/class_5481;
ARG 0 string
ARG 1 firstCharacterIndex
METHOD method_1874 onChanged (Ljava/lang/String;)V
ARG 1 newText
METHOD method_1875 setSelectionStart (I)V