File tree Expand file tree Collapse file tree
main/src/main/java/me/outspending/biomesapi/biome Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -582,17 +582,29 @@ public Builder(@NotNull CustomBiome biome) {
582582 return this ;
583583 }
584584
585-
586585 /**
587586 * This method sets the dry foliage color property of the CustomBiome.
588587 *
589588 * @param dryFoliageColor The dry foliage color of the custom biome.
590589 * @since 1.0.2
591590 * @return The Builder object, for chaining method calls.
592591 */
593- @ AsOf ("1.0.2 " )
592+ @ AsOf ("1.2.0 " )
594593 public @ NotNull Builder dryFoliageColor (@ NotNull String dryFoliageColor ) {
595- this .dryFoliageColor = Integer .parseInt (formatHex (dryFoliageColor ), 16 );
594+ this .dryFoliageColor = parseHex (dryFoliageColor );
595+ return this ;
596+ }
597+
598+ /**
599+ * This method sets the dry foliage color property of the CustomBiome.
600+ *
601+ * @param dryFoliageColor The dry foliage color of the custom biome.
602+ * @since 1.2.0
603+ * @return The Builder object, for chaining method calls.
604+ */
605+ @ AsOf ("1.2.0" )
606+ public @ NotNull Builder dryFoliageColor (@ NotNull Color dryFoliageColor ) {
607+ this .dryFoliageColor = dryFoliageColor .asRGB ();
596608 return this ;
597609 }
598610
You can’t perform that action at this time.
0 commit comments