Skip to content

Commit

Permalink
fix: correct Javadocs regarding setInitialFocus in Screen (#3962)
Browse files Browse the repository at this point in the history
  • Loading branch information
Octol1ttle authored Aug 23, 2024
1 parent 56805ce commit 8970d3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mappings/net/minecraft/client/gui/screen/Screen.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ CLASS net/minecraft/class_437 net/minecraft/client/gui/screen/Screen
COMMENT Called when a screen should be initialized.
COMMENT
COMMENT <p>This method is called when this screen is {@linkplain net.minecraft.client.MinecraftClient#setScreen(Screen) opened} or resized.
COMMENT
COMMENT <p>This should call {@link #setInitialFocus} to set the element that is initially focused.
METHOD method_25429 addSelectableChild (Lnet/minecraft/class_364;)Lnet/minecraft/class_364;
ARG 1 child
METHOD method_25430 handleTextClick (Lnet/minecraft/class_2583;)Z
Expand Down Expand Up @@ -152,7 +150,7 @@ CLASS net/minecraft/class_437 net/minecraft/client/gui/screen/Screen
ARG 1 direction
METHOD method_48265 setInitialFocus (Lnet/minecraft/class_364;)V
COMMENT Sets the initial focus of this screen. This should be called inside the overridden
COMMENT {@link #init()} method by screen implementations.
COMMENT {@link #setInitialFocus()} method by screen implementations.
ARG 1 element
METHOD method_48266 getTabNavigation ()Lnet/minecraft/class_8023$class_8026;
METHOD method_48267 blur ()V
Expand All @@ -168,6 +166,7 @@ CLASS net/minecraft/class_437 net/minecraft/client/gui/screen/Screen
ARG 1 context
METHOD method_53870 getUsageNarrationText ()Lnet/minecraft/class_2561;
METHOD method_56131 setInitialFocus ()V
COMMENT This should be overriden with a call to {@link #setInitialFocus(Element)} to set the element that is initially focused.
METHOD method_57728 renderPanoramaBackground (Lnet/minecraft/class_332;F)V
ARG 1 context
ARG 2 delta
Expand Down

0 comments on commit 8970d3f

Please sign in to comment.