Skip to content

Commit

Permalink
Document ButtonTextures
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Sep 9, 2023
1 parent ac0636b commit b357d29
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions mappings/net/minecraft/client/gui/screen/ButtonTextures.mapping
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b357d29

Please sign in to comment.