Skip to content

Commit e6b568e

Browse files
committed
BiomeParameterPoint no longer knows min/max
1 parent cc1ddd5 commit e6b568e

2 files changed

Lines changed: 60 additions & 72 deletions

File tree

‎paper-api/src/main/java/org/bukkit/generator/BiomeParameterPoint.java‎

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,23 @@ public interface BiomeParameterPoint {
1818
* Gets the maximum temperature that is possible.
1919
*
2020
* @return The maximum temperature
21+
* @deprecated no longer available
2122
*/
22-
double getMaxTemperature();
23+
@Deprecated(forRemoval = true, since = "26.3")
24+
default double getMaxTemperature() {
25+
return this.getTemperature();
26+
}
2327

2428
/**
2529
* Gets the minimum temperature that is possible.
2630
*
2731
* @return The minimum temperature
32+
* @deprecated no longer available
2833
*/
29-
double getMinTemperature();
34+
@Deprecated(forRemoval = true, since = "26.3")
35+
default double getMinTemperature() {
36+
return this.getTemperature();
37+
}
3038

3139
/**
3240
* Gets the humidity of the biome at this point that is suggested by the
@@ -40,15 +48,23 @@ public interface BiomeParameterPoint {
4048
* Gets the maximum humidity that is possible.
4149
*
4250
* @return The maximum humidity
51+
* @deprecated no longer available
4352
*/
44-
double getMaxHumidity();
53+
@Deprecated(forRemoval = true, since = "26.3")
54+
default double getMaxHumidity() {
55+
return this.getHumidity();
56+
}
4557

4658
/**
4759
* Gets the minimum humidity that is possible.
4860
*
4961
* @return The minimum humidity
62+
* @deprecated no longer available
5063
*/
51-
double getMinHumidity();
64+
@Deprecated(forRemoval = true, since = "26.3")
65+
default double getMinHumidity() {
66+
return this.getHumidity();
67+
}
5268

5369
/**
5470
* Gets the continentalness of the biome at this point that is suggested by
@@ -62,15 +78,23 @@ public interface BiomeParameterPoint {
6278
* Gets the maximum continentalness that is possible.
6379
*
6480
* @return The maximum continentalness
81+
* @deprecated no longer available
6582
*/
66-
double getMaxContinentalness();
83+
@Deprecated(forRemoval = true, since = "26.3")
84+
default double getMaxContinentalness() {
85+
return this.getContinentalness();
86+
}
6787

6888
/**
6989
* Gets the minimum continentalness that is possible.
7090
*
7191
* @return The minimum continentalness
92+
* @deprecated no longer available
7293
*/
73-
double getMinContinentalness();
94+
@Deprecated(forRemoval = true, since = "26.3")
95+
default double getMinContinentalness() {
96+
return this.getContinentalness();
97+
}
7498

7599
/**
76100
* Gets the erosion of the biome at this point that is suggested by the
@@ -84,15 +108,23 @@ public interface BiomeParameterPoint {
84108
* Gets the maximum erosion that is possible.
85109
*
86110
* @return The maximum erosion
111+
* @deprecated no longer available
87112
*/
88-
double getMaxErosion();
113+
@Deprecated(forRemoval = true, since = "26.3")
114+
default double getMaxErosion() {
115+
return this.getErosion();
116+
}
89117

90118
/**
91119
* Gets the minimum erosion that is possible.
92120
*
93121
* @return The minimum erosion
122+
* @deprecated no longer available
94123
*/
95-
double getMinErosion();
124+
@Deprecated(forRemoval = true, since = "26.3")
125+
default double getMinErosion() {
126+
return this.getErosion();
127+
}
96128

97129
/**
98130
* Gets the depth of the biome at this point that is suggested by the
@@ -106,15 +138,23 @@ public interface BiomeParameterPoint {
106138
* Gets the maximum depth that is possible.
107139
*
108140
* @return The maximum depth
141+
* @deprecated no longer available
109142
*/
110-
double getMaxDepth();
143+
@Deprecated(forRemoval = true, since = "26.3")
144+
default double getMaxDepth() {
145+
return this.getDepth();
146+
}
111147

112148
/**
113149
* Gets the minimum depth that is possible.
114150
*
115151
* @return The minimum depth
152+
* @deprecated no longer available
116153
*/
117-
double getMinDepth();
154+
@Deprecated(forRemoval = true, since = "26.3")
155+
default double getMinDepth() {
156+
return this.getDepth();
157+
}
118158

119159
/**
120160
* Gets the weirdness of the biome at this point that is suggested by the
@@ -128,13 +168,21 @@ public interface BiomeParameterPoint {
128168
* Gets the maximum weirdness that is possible.
129169
*
130170
* @return The maximum weirdness
171+
* @deprecated no longer available
131172
*/
132-
double getMaxWeirdness();
173+
@Deprecated(forRemoval = true, since = "26.3")
174+
default double getMaxWeirdness() {
175+
return this.getWeirdness();
176+
}
133177

134178
/**
135179
* Gets the minimum weirdness that is possible.
136180
*
137181
* @return The minimum weirdness
182+
* @deprecated no longer available
138183
*/
139-
double getMinWeirdness();
184+
@Deprecated(forRemoval = true, since = "26.3")
185+
default double getMinWeirdness() {
186+
return this.getWeirdness();
187+
}
140188
}

‎paper-server/src/main/java/org/bukkit/craftbukkit/generator/CraftBiomeParameterPoint.java‎

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -32,88 +32,28 @@ public double getTemperature() {
3232
return this.temperature;
3333
}
3434

35-
@Override
36-
public double getMaxTemperature() {
37-
return this.sampler.temperature().range().max();
38-
}
39-
40-
@Override
41-
public double getMinTemperature() {
42-
return this.sampler.temperature().range().min();
43-
}
44-
4535
@Override
4636
public double getHumidity() {
4737
return this.humidity;
4838
}
4939

50-
@Override
51-
public double getMaxHumidity() {
52-
return this.sampler.humidity().range().max();
53-
}
54-
55-
@Override
56-
public double getMinHumidity() {
57-
return this.sampler.humidity().range().min();
58-
}
59-
6040
@Override
6141
public double getContinentalness() {
6242
return this.continentalness;
6343
}
6444

65-
@Override
66-
public double getMaxContinentalness() {
67-
return this.sampler.continentalness().range().max();
68-
}
69-
70-
@Override
71-
public double getMinContinentalness() {
72-
return this.sampler.continentalness().range().min();
73-
}
74-
7545
@Override
7646
public double getErosion() {
7747
return this.erosion;
7848
}
7949

80-
@Override
81-
public double getMaxErosion() {
82-
return this.sampler.erosion().range().max();
83-
}
84-
85-
@Override
86-
public double getMinErosion() {
87-
return this.sampler.erosion().range().min();
88-
}
89-
9050
@Override
9151
public double getDepth() {
9252
return this.depth;
9353
}
9454

95-
@Override
96-
public double getMaxDepth() {
97-
return this.sampler.depth().range().max();
98-
}
99-
100-
@Override
101-
public double getMinDepth() {
102-
return this.sampler.depth().range().min();
103-
}
104-
10555
@Override
10656
public double getWeirdness() {
10757
return this.weirdness;
10858
}
109-
110-
@Override
111-
public double getMaxWeirdness() {
112-
return this.sampler.weirdness().range().max();
113-
}
114-
115-
@Override
116-
public double getMinWeirdness() {
117-
return this.sampler.weirdness().range().min();
118-
}
11959
}

0 commit comments

Comments
 (0)