Gui List Biomes
基本信息
| 属性 |
值 |
| 类 |
com.chaosthedude.naturescompass.gui.GuiListBiomes |
| 父类 |
GuiListExtended |
| 仅客户端 |
@SideOnly(Side.CLIENT) |
| 实例数 |
1(GuiNaturesCompass 内嵌) |
行为
GuiNaturesCompass 中群系列表的容器。每条 entry 是 GuiListBiomesEntry。
关键行为
getScrollBarX():相对父类右移 20 px。
getListWidth():相对父类加宽 50 px。
isSelected(slotIndex):仅 selectedIndex 处为高亮。
getSelectedBiome():当前选中 entry,可为 null。
refreshList():清空并按 guiNaturesCompass.sortBiomes() 重新构建 entry。
selectBiome(int):把 selectedIndex 写到 GUI,触发 guiNaturesCompass.selectBiome(...),后者启用 Info / Search 按钮。
数值
| 数值 |
默认值 |
| 滚动条 X 偏移 |
+20 px |
| 列表宽度增量 |
+50 px |
| Slot 高度 |
36 |
限制
- 仅支持单选。
- 列表内容依赖
sortBiomes();排序每次 refreshList() 时重建。
相关条目