Gui Biome Info
基本信息
| 属性 | 值 |
|---|---|
| 类 | com.chaosthedude.naturescompass.gui.GuiBiomeInfo |
| 仅客户端 | @SideOnly(Side.CLIENT) |
| 父屏幕 | GuiNaturesCompass(通过 parentScreen 引用) |
行为
GuiNaturesCompass 点击 Info 按钮打开的群系详情面板。展示当前选中群系的:群系名、基础高度、高度变化、降水类型、湿度、气候、tags。
文本分级(GuiBiomeInfo 构造函数计算)
| 维度 | 计算 | 输出 |
|---|---|---|
| Base Height | < -1.0 Very Low / < 0.0 Low / < 0.4 Average / < 1.0 High / 其它 Very High + 原始数值 |
Average(0.1f) 形式 |
| Height Variation | < 0.3 Average / < 0.6 High / 其它 Very High + 原始数值 |
Average(0.1f) |
| Precipitation | getEnableSnow() → Snow / rainfall > 0 → Rain / 其它 None |
单词 |
| Climate | BiomeUtils.getBiomeClimate(biome) + (int)(temperature * 100)°F |
Hot(85°F) 形式 |
| Humidity | BiomeUtils.getBiomeHumidity(biome) + (int)(rainfall * 100)% |
Damp(95%) |
| Tags | BiomeUtils.getListBiomeTags(biome) 拼接(每 20 字符换行) |
Forest, Magical, ... |
按钮
| ID | 显示 | 行为 |
|---|---|---|
| 0 | Back |
回到 GuiNaturesCompass |
| 1 | Search |
调 parentScreen.searchForBiome(biome.biomeID) 并关闭本界面 |
绘制布局
- 标题:群系名居中
(width/2, 20) - 左列
(width/2 - 100, 40..)— Precipitation, Base Height, Humidity - 右列
(width/2 + 40, 40..)— Climate, Height Variation, Tags(按行展开) - 颜色:标签
0xFFFFFF,值0x808080 - 背景:调
drawDefaultBackground()
数值
| 数值 | 默认值 |
|---|---|
| Tag 行长度阈值 | 20 字符 |
| Tag 行间像素 | 10 px |
| 按钮宽度 | 150 px |
| 按钮位置 Y | height - 52 |
限制
- 不显示群系结构(矿物、生物群等)。
- 数值只读,不可编辑。