22
33import com .terraformersmc .biolith .api .biome .sub .Criterion ;
44import com .terraformersmc .biolith .impl .biome .BiomeCoordinator ;
5- import net .minecraft .registry . RegistryKey ;
6- import net .minecraft .world .biome .Biome ;
7- import net .minecraft .world .biome .source . util . MultiNoiseUtil ;
5+ import net .minecraft .resources . ResourceKey ;
6+ import net .minecraft .world .level . biome .Biome ;
7+ import net .minecraft .world .level . biome .Climate ;
88
99@ SuppressWarnings ("unused" )
1010public final class BiomePlacement {
@@ -18,7 +18,7 @@ private BiomePlacement() {
1818 * @param biome The biome to be placed
1919 * @param noisePoint A multi-noise point at which to place the biome
2020 */
21- public static void addEnd (RegistryKey <Biome > biome , MultiNoiseUtil . NoiseHypercube noisePoint ) {
21+ public static void addEnd (ResourceKey <Biome > biome , Climate . ParameterPoint noisePoint ) {
2222 BiomeCoordinator .END .addPlacement (biome , noisePoint , false );
2323 }
2424
@@ -28,7 +28,7 @@ public static void addEnd(RegistryKey<Biome> biome, MultiNoiseUtil.NoiseHypercub
2828 * @param biome The biome to be placed
2929 * @param noisePoint A multi-noise point at which to place the biome
3030 */
31- public static void addNether (RegistryKey <Biome > biome , MultiNoiseUtil . NoiseHypercube noisePoint ) {
31+ public static void addNether (ResourceKey <Biome > biome , Climate . ParameterPoint noisePoint ) {
3232 BiomeCoordinator .NETHER .addPlacement (biome , noisePoint , false );
3333 }
3434
@@ -38,7 +38,7 @@ public static void addNether(RegistryKey<Biome> biome, MultiNoiseUtil.NoiseHyper
3838 * @param biome The biome to be placed
3939 * @param noisePoint A multi-noise point at which to place the biome
4040 */
41- public static void addOverworld (RegistryKey <Biome > biome , MultiNoiseUtil . NoiseHypercube noisePoint ) {
41+ public static void addOverworld (ResourceKey <Biome > biome , Climate . ParameterPoint noisePoint ) {
4242 BiomeCoordinator .OVERWORLD .addPlacement (biome , noisePoint , false );
4343 }
4444
@@ -48,7 +48,7 @@ public static void addOverworld(RegistryKey<Biome> biome, MultiNoiseUtil.NoiseHy
4848 *
4949 * @param biome The biome to be removed
5050 */
51- public static void removeEnd (RegistryKey <Biome > biome ) {
51+ public static void removeEnd (ResourceKey <Biome > biome ) {
5252 BiomeCoordinator .END .addRemoval (biome , false );
5353 }
5454
@@ -57,7 +57,7 @@ public static void removeEnd(RegistryKey<Biome> biome) {
5757 *
5858 * @param biome The biome to be removed
5959 */
60- public static void removeNether (RegistryKey <Biome > biome ) {
60+ public static void removeNether (ResourceKey <Biome > biome ) {
6161 BiomeCoordinator .NETHER .addRemoval (biome , false );
6262 }
6363
@@ -66,7 +66,7 @@ public static void removeNether(RegistryKey<Biome> biome) {
6666 *
6767 * @param biome The biome to be placed
6868 */
69- public static void removeOverworld (RegistryKey <Biome > biome ) {
69+ public static void removeOverworld (ResourceKey <Biome > biome ) {
7070 BiomeCoordinator .OVERWORLD .addRemoval (biome , false );
7171 }
7272
@@ -77,7 +77,7 @@ public static void removeOverworld(RegistryKey<Biome> biome) {
7777 * @param target The biome to be replaced
7878 * @param biome The replacement biome
7979 */
80- public static void replaceEnd (RegistryKey <Biome > target , RegistryKey <Biome > biome ) {
80+ public static void replaceEnd (ResourceKey <Biome > target , ResourceKey <Biome > biome ) {
8181 BiomeCoordinator .END .addReplacement (target , biome , 1.0D , false );
8282 }
8383
@@ -89,7 +89,7 @@ public static void replaceEnd(RegistryKey<Biome> target, RegistryKey<Biome> biom
8989 * @param biome The replacement biome
9090 * @param proportion Approximate fraction of the target biome's volume to replace
9191 */
92- public static void replaceEnd (RegistryKey <Biome > target , RegistryKey <Biome > biome , double proportion ) {
92+ public static void replaceEnd (ResourceKey <Biome > target , ResourceKey <Biome > biome , double proportion ) {
9393 BiomeCoordinator .END .addReplacement (target , biome , proportion , false );
9494 }
9595
@@ -99,7 +99,7 @@ public static void replaceEnd(RegistryKey<Biome> target, RegistryKey<Biome> biom
9999 * @param target The biome to be replaced
100100 * @param biome The replacement biome
101101 */
102- public static void replaceNether (RegistryKey <Biome > target , RegistryKey <Biome > biome ) {
102+ public static void replaceNether (ResourceKey <Biome > target , ResourceKey <Biome > biome ) {
103103 BiomeCoordinator .NETHER .addReplacement (target , biome , 1.0D , false );
104104 }
105105
@@ -111,7 +111,7 @@ public static void replaceNether(RegistryKey<Biome> target, RegistryKey<Biome> b
111111 * @param biome The replacement biome
112112 * @param proportion Approximate fraction of the target biome's volume to replace
113113 */
114- public static void replaceNether (RegistryKey <Biome > target , RegistryKey <Biome > biome , double proportion ) {
114+ public static void replaceNether (ResourceKey <Biome > target , ResourceKey <Biome > biome , double proportion ) {
115115 BiomeCoordinator .NETHER .addReplacement (target , biome , proportion , false );
116116 }
117117
@@ -121,7 +121,7 @@ public static void replaceNether(RegistryKey<Biome> target, RegistryKey<Biome> b
121121 * @param target The biome to be replaced
122122 * @param biome The replacement biome
123123 */
124- public static void replaceOverworld (RegistryKey <Biome > target , RegistryKey <Biome > biome ) {
124+ public static void replaceOverworld (ResourceKey <Biome > target , ResourceKey <Biome > biome ) {
125125 BiomeCoordinator .OVERWORLD .addReplacement (target , biome , 1.0D , false );
126126 }
127127
@@ -133,7 +133,7 @@ public static void replaceOverworld(RegistryKey<Biome> target, RegistryKey<Biome
133133 * @param biome The replacement biome
134134 * @param proportion Approximate fraction of the target biome's volume to replace
135135 */
136- public static void replaceOverworld (RegistryKey <Biome > target , RegistryKey <Biome > biome , double proportion ) {
136+ public static void replaceOverworld (ResourceKey <Biome > target , ResourceKey <Biome > biome , double proportion ) {
137137 BiomeCoordinator .OVERWORLD .addReplacement (target , biome , proportion , false );
138138 }
139139
@@ -146,7 +146,7 @@ public static void replaceOverworld(RegistryKey<Biome> target, RegistryKey<Biome
146146 * @param biome The replacement biome
147147 * @param criterion Matching criteria for when to replace
148148 */
149- public static void addSubEnd (RegistryKey <Biome > target , RegistryKey <Biome > biome , Criterion criterion ) {
149+ public static void addSubEnd (ResourceKey <Biome > target , ResourceKey <Biome > biome , Criterion criterion ) {
150150 BiomeCoordinator .END .addSubBiome (target , biome , criterion , false );
151151 }
152152
@@ -158,7 +158,7 @@ public static void addSubEnd(RegistryKey<Biome> target, RegistryKey<Biome> biome
158158 * @param biome The replacement biome
159159 * @param criterion Matching criteria for when to replace
160160 */
161- public static void addSubNether (RegistryKey <Biome > target , RegistryKey <Biome > biome , Criterion criterion ) {
161+ public static void addSubNether (ResourceKey <Biome > target , ResourceKey <Biome > biome , Criterion criterion ) {
162162 BiomeCoordinator .NETHER .addSubBiome (target , biome , criterion , false );
163163 }
164164
@@ -170,7 +170,7 @@ public static void addSubNether(RegistryKey<Biome> target, RegistryKey<Biome> bi
170170 * @param biome The replacement biome
171171 * @param criterion Matching criteria for when to replace
172172 */
173- public static void addSubOverworld (RegistryKey <Biome > target , RegistryKey <Biome > biome , Criterion criterion ) {
173+ public static void addSubOverworld (ResourceKey <Biome > target , ResourceKey <Biome > biome , Criterion criterion ) {
174174 BiomeCoordinator .OVERWORLD .addSubBiome (target , biome , criterion , false );
175175 }
176176}
0 commit comments