diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-11-16 22:00:19 +0200 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-11-16 22:00:19 +0200 |
commit | f0afbe199e479a900065ba61e671bc32cf9035a1 (patch) | |
tree | fcc941864b4b835f6596329a1cb6c2a8b381e746 /src | |
parent | 3f4e6c15db57bfb4fd3f304a80d0a34331c79df3 (diff) | |
download | LibGui-f0afbe199e479a900065ba61e671bc32cf9035a1.tar.gz LibGui-f0afbe199e479a900065ba61e671bc32cf9035a1.tar.bz2 LibGui-f0afbe199e479a900065ba61e671bc32cf9035a1.zip |
Make deprecated WTabPanel.Tab constructor private
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java index 718e44b..9c16c73 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java @@ -116,19 +116,7 @@ public class WTabPanel extends WPanel { @Nullable private final Consumer<TooltipBuilder> tooltip; - /** - * Constructs a tab. - * - * @param title the tab title - * @param icon the tab icon - * @param widget the widget contained in the tab - * @param tooltip the tab tooltip - * @throws IllegalArgumentException if both the title and the icon are null - * @throws NullPointerException if the widget is null - * @deprecated Use {@link Builder} instead. - */ - @Deprecated - public Tab(@Nullable Text title, @Nullable Icon icon, WWidget widget, @Nullable Consumer<TooltipBuilder> tooltip) { + private Tab(@Nullable Text title, @Nullable Icon icon, WWidget widget, @Nullable Consumer<TooltipBuilder> tooltip) { if (title == null && icon == null) { throw new IllegalArgumentException("A tab must have a title or an icon"); } |