extract skycolor

This commit is contained in:
Bixilon 2021-03-10 15:32:27 +01:00
parent 3d62b167c7
commit 3de4a859d6
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -31,6 +31,10 @@ object BiomeGenerator : Generator(
}
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 {
@ -90,6 +94,9 @@ object BiomeGenerator : Generator(
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 fun getBiomes(): Set<Triple<ResourceLocation, Int, Biome>> {