Class WeatherStateEnvironmentProvider.Builder

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

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

    • withClear

      @Contract("_->this") public WeatherStateEnvironmentProvider.Builder withClear(net.minecraft.registry.entry.RegistryEntry<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 WeatherStateEnvironmentProvider.Builder withRain(net.minecraft.registry.entry.RegistryEntry<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 WeatherStateEnvironmentProvider.Builder withThunder(net.minecraft.registry.entry.RegistryEntry<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 WeatherStateEnvironmentProvider build()
      Returns:
      Returns a new weather state provider from this current's current state