Class TemperatureSource.Builder
java.lang.Object
com.github.thedeathlycow.thermoo.api.core.v2.source.TemperatureSource.Builder
- Enclosing interface:
TemperatureSource
Builder interface for temperature sources, primarily intended for use with data generation.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new temperature source from this builder.withReduction(TemperatureReduction reduction) Adds a reduction method to this builder.withTickInterval(int interval) Sets atick intervalfor this temperature source.
-
Method Details
-
withReduction
Adds a reduction method to this builder.- Parameters:
reduction- The reduction method, may not benull.- Returns:
- Returns this builder.
-
withTickInterval
Sets atick intervalfor this temperature source.- Parameters:
interval- The interval between updates, in ticks. May not be negative.- Returns:
- Returns this builder.
-
build
Creates a new temperature source from this builder.
-