Interface ClimateSettings
- All Superinterfaces:
Wrapper
Represents the climate settings of a biome.
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classCreates a new ClimateSettings builder.Nested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClimateSettingsstatic final ConstructWireProvider<ClimateSettings> -
Method Summary
Modifier and TypeMethodDescriptionstatic ClimateSettings.Builderbuilder()Creates a new ClimateSettings builder.floatdownfall()The downfall of the biome.booleanWhether the biome has precipitation.static ClimateSettingsof(boolean hasPrecipitation, float temperature, TemperatureModifier temperatureModifier, float downfall) Creates a new ClimateSettings instance.floatThe temperature of the biome.The temperature modifier of the biome.default ClimateSettings.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft
-
Field Details
-
WIRE
-
DEFAULT
-
-
Method Details
-
hasPrecipitation
Whether the biome has precipitation.- Returns:
- whether the biome has precipitation
- Since:
- 3.0.0
-
temperature
The temperature of the biome. Anything less than 0.14 will cause snow to appear instead of rain.- Returns:
- the temperature of the biome
- Since:
- 3.0.0
-
temperatureModifier
The temperature modifier of the biome.- Returns:
- the temperature modifier of the biome
- Since:
- 3.0.0
-
downfall
The downfall of the biome.- Returns:
- the downfall of the biome
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a new ClimateSettings builder from this instance
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static ClimateSettings of(boolean hasPrecipitation, float temperature, TemperatureModifier temperatureModifier, float downfall) Creates a new ClimateSettings instance.- Parameters:
hasPrecipitation- whether the biome has precipitationtemperature- the temperature of the biometemperatureModifier- the temperature modifier of the biomedownfall- the downfall of the biome- Returns:
- a new ClimateSettings instance
- Since:
- 3.0.0
-
builder
Creates a new ClimateSettings builder.- Returns:
- a new ClimateSettings builder
- Since:
- 3.0.0
-