Class WeatherStateSelector.Builder

java.lang.Object
com.github.thedeathlycow.thermoo.api.environment.v2.provider.WeatherStateSelector.Builder
Enclosing class:
WeatherStateSelector

public static final class WeatherStateSelector.Builder extends Object
Builder for weather state providers. All fields are empty by default.
  • Method Details

    • withClear

      @Contract("_->this") public WeatherStateSelector.Builder withClear(net.minecraft.core.Holder<EnvironmentProvider> clear)
      Provider to use when the world is not raining or thundering
      Parameters:
      clear - A non-null registry entry
      Returns:
      Returns this builder
    • withRain

      @Contract("_->this") public WeatherStateSelector.Builder withRain(net.minecraft.core.Holder<EnvironmentProvider> rain)
      Provider to use when the world is raining but not thundering
      Parameters:
      rain - A non-null registry entry
      Returns:
      Returns this builder
    • withThunder

      @Contract("_->this") public WeatherStateSelector.Builder withThunder(net.minecraft.core.Holder<EnvironmentProvider> thunder)
      Provider to use when the world is raining thundering
      Parameters:
      thunder - A non-null registry entry
      Returns:
      Returns this builder
    • build

      @Contract("->new") public WeatherStateSelector build()
      Returns:
      Returns a new weather state provider from this current's current state