Record Class BiomeSettings
java.lang.Object
java.lang.Record
dev.wyck.wrapper.BiomeSettings
@Deprecated
@NullMarked
@AsOf("0.0.8")
public record BiomeSettings(float depth, float scale, float temperature, float downfall, TemperatureModifier modifier, boolean hasPrecipitation)
extends Record
Deprecated.
This is a record class that represents the settings for a biome in Minecraft.
It includes properties such as depth, scale, temperature, downfall, and a temperature modifier.
It also includes a nested Builder class for creating instances of BiomeSettings.
- Since:
- 0.0.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.This is a nested Builder class for creating instances of BiomeSettings. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBiomeSettings(float depth, float scale, float temperature, float downfall, TemperatureModifier modifier, boolean hasPrecipitation) Deprecated.Creates an instance of aBiomeSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BiomeSettings.Builderbuilder()Deprecated.This method creates a new Builder object for creating instances of BiomeSettings.static BiomeSettingsDeprecated.This method creates a new BiomeSettings object with default settings.floatdepth()Deprecated.Returns the value of thedepthrecord component.floatdownfall()Deprecated.Returns the value of thedownfallrecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.booleanDeprecated.Returns the value of thehasPrecipitationrecord component.modifier()Deprecated.Returns the value of themodifierrecord component.floatscale()Deprecated.Returns the value of thescalerecord component.floatDeprecated.Returns the value of thetemperaturerecord component.final StringtoString()Deprecated.Returns a string representation of this record class.
-
Field Details
-
RANGE
Deprecated.
-
-
Constructor Details
-
BiomeSettings
public BiomeSettings(float depth, float scale, float temperature, float downfall, TemperatureModifier modifier, boolean hasPrecipitation) Deprecated.Creates an instance of aBiomeSettingsrecord class.- Parameters:
depth- the value for thedepthrecord componentscale- the value for thescalerecord componenttemperature- the value for thetemperaturerecord componentdownfall- the value for thedownfallrecord componentmodifier- the value for themodifierrecord componenthasPrecipitation- the value for thehasPrecipitationrecord component
-
-
Method Details
-
builder
Deprecated.This method creates a new Builder object for creating instances of BiomeSettings.- Returns:
- a new Builder object.
- Since:
- 0.0.1
-
defaultSettings
Deprecated.This method creates a new BiomeSettings object with default settings. The default settings are a depth of 0.1, a scale of 0.2, a temperature of 0.5, a downfall of 0.5, and a temperature modifier of NONE.- Returns:
- a new BiomeSettings object with default settings.
- Since:
- 0.0.1
-
toString
-
hashCode
-
equals
Deprecated.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
depth
public float depth()Deprecated.Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
scale
public float scale()Deprecated.Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
temperature
public float temperature()Deprecated.Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
downfall
public float downfall()Deprecated.Returns the value of thedownfallrecord component.- Returns:
- the value of the
downfallrecord component
-
modifier
Deprecated.Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-
hasPrecipitation
public boolean hasPrecipitation()Deprecated.Returns the value of thehasPrecipitationrecord component.- Returns:
- the value of the
hasPrecipitationrecord component
-
ClimateSettings.