aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2021-12-22 18:24:03 +0200
committerJuuz <6596629+Juuxel@users.noreply.github.com>2021-12-22 18:24:03 +0200
commitbbbd874a67489488f5e969633b2ca01881f4164b (patch)
treebe1d2346815be7dbc9ff45bb277ce61830e1deff /src
parent484dbb3e78c2d22ba129dbecef49a4314e978036 (diff)
downloadLibGui-bbbd874a67489488f5e969633b2ca01881f4164b.tar.gz
LibGui-bbbd874a67489488f5e969633b2ca01881f4164b.tar.bz2
LibGui-bbbd874a67489488f5e969633b2ca01881f4164b.zip
Improve WWidget.validate javadoc
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
index a8cb8bf..9636e8b 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
@@ -357,8 +357,11 @@ public class WWidget {
}
/**
- * Creates component peers, lays out children, and initializes animation data for this Widget and all its children.
- * The host container must clear any heavyweight peers from its records before this method is called.
+ * Creates component peers and initializes animation data for this Widget and all its children.
+ * The host {@linkplain net.minecraft.screen.ScreenHandler screen handler} must clear any heavyweight peers
+ * from its records before this method is called.
+ *
+ * <p>This method must be called on the root panel of any screen once the widgets have been initialized.
*
* @param host the host GUI description
*/