mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer.git
synced 2025-09-28 06:31:08 -04:00
extract skycolor
This commit is contained in:
parent
3d62b167c7
commit
3de4a859d6
@ -31,6 +31,10 @@ object BiomeGenerator : Generator(
|
|||||||
}
|
}
|
||||||
biomeData.addProperty("downfall", DOWNFALL_FIELD.getFloat(climateParameters))
|
biomeData.addProperty("downfall", DOWNFALL_FIELD.getFloat(climateParameters))
|
||||||
|
|
||||||
|
BIOME_SKY_COLOR_FIELD?.getInt(biome)?.let {
|
||||||
|
biomeData.addProperty("sky_color", it)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getField(Biome::class.java, "specialEffects")?.get(biome)?.let {
|
getField(Biome::class.java, "specialEffects")?.get(biome)?.let {
|
||||||
@ -90,6 +94,9 @@ object BiomeGenerator : Generator(
|
|||||||
private val DOWNFALL_FIELD = getField(CLIMATE_SETTINGS_CLASS, "downfall")!!
|
private val DOWNFALL_FIELD = getField(CLIMATE_SETTINGS_CLASS, "downfall")!!
|
||||||
|
|
||||||
|
|
||||||
|
private val BIOME_SKY_COLOR_FIELD = getField(Biome::class.java, "skyColor")
|
||||||
|
|
||||||
|
|
||||||
private val MUSIC_CLASS_EVENT_FIELD = getField(getClass("net.minecraft.sounds.Music"), "event")
|
private val MUSIC_CLASS_EVENT_FIELD = getField(getClass("net.minecraft.sounds.Music"), "event")
|
||||||
|
|
||||||
private fun getBiomes(): Set<Triple<ResourceLocation, Int, Biome>> {
|
private fun getBiomes(): Set<Triple<ResourceLocation, Int, Biome>> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user