Class BiomeEffects.Builder

java.lang.Object
fr.fidorial.world.biome.BiomeEffects.Builder
Enclosing class:
BiomeEffects

public static final class BiomeEffects.Builder extends Object
Mutable builder for BiomeEffects.
Since:
0.1.0
  • Method Details

    • waterColor

      @Contract("_ -> this") public BiomeEffects.Builder waterColor(int color)
      Parameters:
      color - packed RGB tint applied to water
      Returns:
      this builder
    • foliageColor

      @Contract("_ -> this") public BiomeEffects.Builder foliageColor(@Nullable Integer color)
      Parameters:
      color - packed RGB leaf tint, or null to let the client compute it
      Returns:
      this builder
    • grassColor

      @Contract("_ -> this") public BiomeEffects.Builder grassColor(@Nullable Integer color)
      Parameters:
      color - packed RGB grass tint, or null to let the client compute it
      Returns:
      this builder
    • dryFoliageColor

      @Contract("_ -> this") public BiomeEffects.Builder dryFoliageColor(@Nullable Integer color)
      Parameters:
      color - packed RGB leaf litter tint, or null for the default
      Returns:
      this builder
    • grassColorModifier

      @Contract("_ -> this") public BiomeEffects.Builder grassColorModifier(GrassColorModifier modifier)
      Parameters:
      modifier - post-processing applied on top of the grass color
      Returns:
      this builder
    • build

      @Contract(value="-> new", pure=true) public BiomeEffects build()
      Returns the immutable effects described by this builder.
      Returns:
      the immutable effects described by this builder