File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
src/main/java/org/spongepowered/api Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -2459,10 +2459,15 @@ public final class Keys {
24592459 public static final Key <Value <Integer >> POWER = Keys .key (ResourceKey .sponge ("power" ), Integer .class );
24602460
24612461 /**
2462- * The {@link Precipitation} type of a {@link Biome}. Readonly.
2462+ * The default {@link Precipitation} type of a {@link Biome}. Readonly.
24632463 */
24642464 public static final Key <Value <Precipitation >> PRECIPITATION = Keys .key (ResourceKey .sponge ("precipitation" ), Precipitation .class );
24652465
2466+ /**
2467+ * Whether a {@link Biome} has {@link Precipitation}. Readonly.
2468+ */
2469+ public static final Key <Value <Boolean >> HAS_PRECIPITATION = Keys .key (ResourceKey .sponge ("has_precipitation" ), Boolean .class );
2470+
24662471 /**
24672472 * The previous {@link GameMode} of a {@link ServerPlayer}. Readonly.
24682473 */
Original file line number Diff line number Diff line change @@ -81,14 +81,24 @@ default double humidity() {
8181 }
8282
8383 /**
84- * Gets the type of precipitation in this biome.
84+ * Gets the default type of precipitation in this biome.
85+ * <p>This is determined by {@link Keys#HAS_PRECIPITATION} and {@link Keys#BIOME_TEMPERATURE}</p>
8586 *
8687 * @return The type of precipitation
8788 */
8889 default Precipitation precipitation () {
8990 return this .require (Keys .PRECIPITATION );
9091 }
9192
93+ /**
94+ * Gets the type of precipitation in this biome.
95+ *
96+ * @return The type of precipitation
97+ */
98+ default boolean hasPrecipitation () {
99+ return this .require (Keys .HAS_PRECIPITATION );
100+ }
101+
92102 /**
93103 * Gets the temperature modifier.
94104 *
You can’t perform that action at this time.
0 commit comments