Document ButtonTextures

This commit is contained in:
Juuz 2023-09-09 18:08:59 +03:00
parent ac0636b5fe
commit b357d296e3
No known key found for this signature in database
GPG Key ID: 698A49B11130C4E5
1 changed files with 23 additions and 0 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
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