This commit is contained in:
modmuss50
2023-11-16 17:01:20 +00:00
parent a2e8758a92
commit 6f7ba8f277
13 changed files with 53 additions and 52 deletions

View File

@@ -25,8 +25,8 @@ import net.minecraft.util.Formatting;
import net.minecraft.util.Identifier;
final class ChannelList extends EntryListWidget<ChannelList.Entry> {
ChannelList(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) {
super(client, width, height, top, bottom, itemHeight);
ChannelList(MinecraftClient client, int width, int height, int top, int itemHeight) {
super(client, width, height, top, itemHeight);
}
@Override
@@ -39,7 +39,7 @@ final class ChannelList extends EntryListWidget<ChannelList.Entry> {
}
@Override
public void appendNarrations(NarrationMessageBuilder arg) {
public void appendClickableNarrations(NarrationMessageBuilder arg) {
// TODO seems to be possibly accessibility related
}

View File

@@ -54,7 +54,7 @@ final class ChannelScreen extends Screen {
.position(this.width / 2 - 60, this.height - 25)
.size(120, 20)
.build());
this.channelList = this.addDrawable(new ChannelList(this.client, this.width, this.height - 60, 30, this.height - 30, this.textRenderer.fontHeight + 2));
this.channelList = this.addDrawable(new ChannelList(this.client, this.width, this.height - 60, 30, this.textRenderer.fontHeight + 2));
}
@Override