Builder

A builder for climates.

Functions

Link copied to clipboard
@Contract(value = "-> new", pure = true)
@NotNull
abstract fun build(): @NotNull Climate
Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun downfall(downfall: Float): Climate.Builder

Sets the downfall for the climate to the given downfall and returns this builder.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun precipitation(precipitation: Precipitation): Climate.Builder

Sets the precipitation for the climate to the given precipitation and returns this builder.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun temperature(temperature: Float): Climate.Builder

Sets the temperature for the climate to the given temperature and returns this builder.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun temperatureModifier(modifier: TemperatureModifier): Climate.Builder

Sets the temperature modifier for the climate to the given modifier and returns this builder.