|
10 | 10 |
|
11 | 11 | @ApiStatus.Internal |
12 | 12 | public class SelectionList extends ContainerObjectSelectionList<SelectionListEntry> { |
13 | | - public SelectionList(Minecraft minecraft, int i, int j, int k, int l, int m) { |
14 | | - super(minecraft, i, j, k, l, m); |
| 13 | + public SelectionList(Minecraft minecraft, int width, int height, int y, int itemHeight) { |
| 14 | + super(minecraft, width, height, y, itemHeight); |
15 | 15 | this.centerListVertically = false; |
16 | 16 | } |
| 17 | +// |
| 18 | +// @Override |
| 19 | +// public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) { |
| 20 | +// super.render(graphics, mouseX, mouseY, delta); |
| 21 | +// SelectionListEntry hovered = this.getHoveredEntry(mouseX, mouseY); |
| 22 | +// |
| 23 | +// if (hovered != null) { |
| 24 | +// if (hovered.getTooltip() != null) { |
| 25 | +// graphics.renderTooltip(Minecraft.getInstance().font, hovered.getTooltip(), mouseX, mouseY); |
| 26 | +// } |
| 27 | +// } |
| 28 | +// } |
| 29 | + |
17 | 30 |
|
18 | 31 | @Override |
19 | | - public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) { |
20 | | - super.render(graphics, mouseX, mouseY, delta); |
| 32 | + public void renderWidget(GuiGraphics graphics, int mouseX, int mouseY, float delta) { |
| 33 | + super.renderWidget(graphics, mouseX, mouseY, delta); |
| 34 | + |
21 | 35 | SelectionListEntry hovered = this.getHoveredEntry(mouseX, mouseY); |
22 | 36 |
|
23 | 37 | if (hovered != null) { |
|
0 commit comments