Document ButtonTextures and fix constructor parameters (#3659)

* Fix ButtonTextures constructor parameter order

* Document ButtonTextures
This commit is contained in:
Juuz 2023-09-09 18:54:33 +03:00 committed by GitHub
parent e4f311ec61
commit ac3e82ddf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 2 deletions

View File

@ -1,11 +1,34 @@
CLASS net/minecraft/class_8666 net/minecraft/client/gui/screen/ButtonTextures
COMMENT A set of button textures. It contains four texture choices, one of each of the cases
COMMENT where a button is enabled/disabled and focused/not focused.
FIELD comp_1604 Lnet/minecraft/class_2960;
COMMENT the texture for when the widget is enabled, but not focused
FIELD comp_1605 Lnet/minecraft/class_2960;
COMMENT the texture for when the widget is disabled, but not focused
FIELD comp_1606 Lnet/minecraft/class_2960;
COMMENT the texture for when the widget is enabled and focused
FIELD comp_1607 Lnet/minecraft/class_2960;
COMMENT the texture for when the widget is disabled and focused
METHOD <init> (Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;)V
COMMENT Constructs a set of button textures where only focusing the widget affects
COMMENT the textures.
ARG 1 unfocused
COMMENT the texture for when the widget is not focused
ARG 2 focused
COMMENT the texture for when the widget is focused
METHOD <init> (Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;)V
COMMENT Constructs a set of button textures where both disabled cases use the same texture.
ARG 1 enabled
ARG 2 focused
ARG 3 disabled
COMMENT the texture for when the widget is enabled, but not focused
ARG 2 disabled
COMMENT the texture for when the widget is disabled
ARG 3 focused
COMMENT the texture for when the widget is enabled and focused
METHOD method_52729 get (ZZ)Lnet/minecraft/class_2960;
COMMENT Gets a specific texture option from this texture set.
COMMENT
COMMENT @return the texture identifier matching the widget state
ARG 1 enabled
COMMENT {@code true} if the widget is enabled, {@code false} otherwise
ARG 2 focused
COMMENT {@code true} if the widget is focused, {@code false} otherwise