|
20 | 20 | * A list of {@link WidgetCreator}, used to construct a vertical list of widgets |
21 | 21 | */ |
22 | 22 | public class WidgetCreatorList extends ContainerObjectSelectionList<WidgetCreatorList.@NotNull ButtonEntry> { |
23 | | - /** |
24 | | - * Creates an empty widget list |
25 | | - * |
26 | | - * @param minecraftClient The Minecraft client instance |
27 | | - * @param width The width of the list |
28 | | - * @param height The height of the list |
29 | | - * @param top The top position of the list |
30 | | - * @param bottom UNUSED PARAMETER, USE OTHER CONSTRUCTOR |
31 | | - * @param itemHeight The height of each widget, usually 20 |
32 | | - * @see WidgetCreatorList#WidgetCreatorList(Minecraft, int, int, int, int) |
33 | | - * @deprecated Mojang (rightfully) removed the bottom in 1.20.3, use {@link WidgetCreatorList#WidgetCreatorList(Minecraft, int, int, int, int)} instead |
34 | | - */ |
35 | | - @Deprecated(since = "1.1.0", forRemoval = true) |
36 | | - public WidgetCreatorList(Minecraft minecraftClient, int width, int height, int top, @SuppressWarnings("unused") int bottom, int itemHeight) { |
37 | | - this(minecraftClient, width, height, top, itemHeight); |
38 | | - } |
39 | | - |
40 | | - /** |
41 | | - * Creates an empty widget list |
42 | | - * |
43 | | - * @param minecraftClient The Minecraft client instance |
44 | | - * @param width The width of the list |
45 | | - * @param height The height of the list |
46 | | - * @param top The top position of the list |
47 | | - * @param itemHeight The height of each widget, usually 20 |
48 | | - * @see WidgetCreatorList#WidgetCreatorList(Minecraft, int, HeaderAndFooterLayout) |
49 | | - * @deprecated You should be wrapping the widget in the body of a {@link HeaderAndFooterLayout} |
50 | | - */ |
51 | | - @Deprecated(since = "1.10.0", forRemoval = true) |
52 | | - public WidgetCreatorList(Minecraft minecraftClient, int width, int height, int top, int itemHeight) { |
53 | | - super(minecraftClient, width, height, top, itemHeight); |
54 | | - this.centerListVertically = false; |
55 | | - } |
56 | | - |
57 | 23 | /** |
58 | 24 | * Creates an empty widget list |
59 | 25 | * |
@@ -140,33 +106,6 @@ public ButtonEntry(WidgetCreator creator) { |
140 | 106 | this.widgets = List.of(creator.createWidget(310, 20)); |
141 | 107 | } |
142 | 108 |
|
143 | | - /** |
144 | | - * Creates an entry. |
145 | | - * |
146 | | - * @param width The width of the entry |
147 | | - * @param first The first entry |
148 | | - * @param other The second entry; nullable |
149 | | - * @see ButtonEntry#ButtonEntry(WidgetCreator, WidgetCreator) |
150 | | - * @deprecated The width is now computed automatically |
151 | | - */ |
152 | | - @Deprecated(since = "1.10.0", forRemoval = true) |
153 | | - public ButtonEntry(@SuppressWarnings("unused") int width, WidgetCreator first, @Nullable WidgetCreator other) { |
154 | | - this(first, other); |
155 | | - } |
156 | | - |
157 | | - /** |
158 | | - * Creates a single, wide entry. |
159 | | - * |
160 | | - * @param width The width of the entry |
161 | | - * @param creator The entry |
162 | | - * @see ButtonEntry#ButtonEntry(WidgetCreator) |
163 | | - * @deprecated The width is now computed automatically |
164 | | - */ |
165 | | - @Deprecated(since = "1.10.0", forRemoval = true) |
166 | | - public ButtonEntry(@SuppressWarnings("unused") int width, WidgetCreator creator) { |
167 | | - this(creator); |
168 | | - } |
169 | | - |
170 | 109 | @Override |
171 | 110 | public @NotNull List<? extends NarratableEntry> narratables() { |
172 | 111 | return widgets; |
|
0 commit comments