From bbbd874a67489488f5e969633b2ca01881f4164b Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Wed, 22 Dec 2021 18:24:03 +0200 Subject: Improve WWidget.validate javadoc --- src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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. + * + *

This method must be called on the root panel of any screen once the widgets have been initialized. * * @param host the host GUI description */ -- cgit