Fix Biome patch change that caused our field redirect coremod to not function correctly.

This commit is contained in:
LexManos committed 2024-05-12 11:21:49 -07:00
1 parent c700b4ea9d
commit be7ad14b4b
2 files changed
+35 -41

No files matched your search

@@ -1,33 +0,0 @@
/*
* Copyright (c) Forge Development LLC and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/
package net.minecraftforge.common.extensions;
import net.minecraft.world.level.biome.Biome;
import net.minecraft.world.level.biome.BiomeSpecialEffects;
import net.minecraftforge.common.world.ModifiableBiomeInfo;
public interface IForgeBiome {
/**
* {@return Cache of original biome data and biome data modified by biome modifiers}
* Modified biome data is set by server after datapacks and serverconfigs load.
* Climate and effects field reads are coremodded to redirect to this.
**/
ModifiableBiomeInfo modifiableBiomeInfo();
/**
* {@return The biome's climate settings, with modifications if called after modifiers are applied in server init.}
*/
default Biome.ClimateSettings getModifiedClimateSettings() {
return modifiableBiomeInfo().get().climateSettings();
}
/**
* {@return The biome's client effects, with modifications if called after modifiers are applied in server init.}
*/
default BiomeSpecialEffects getModifiedSpecialEffects() {
return modifiableBiomeInfo().get().effects();
}
}