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.
No longer representative of how climate settings should be defined, use ClimateSettings.
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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Deprecated.
    This is a nested Builder class for creating instances of BiomeSettings.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FloatRange
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BiomeSettings(float depth, float scale, float temperature, float downfall, TemperatureModifier modifier, boolean hasPrecipitation)
    Deprecated.
    Creates an instance of a BiomeSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    This method creates a new Builder object for creating instances of BiomeSettings.
    Deprecated.
    This method creates a new BiomeSettings object with default settings.
    float
    Deprecated.
    Returns the value of the depth record component.
    float
    Deprecated.
    Returns the value of the downfall record component.
    final boolean
    Deprecated.
    Indicates whether some other object is "equal to" this one.
    final int
    Deprecated.
    Returns a hash code value for this object.
    boolean
    Deprecated.
    Returns the value of the hasPrecipitation record component.
    Deprecated.
    Returns the value of the modifier record component.
    float
    Deprecated.
    Returns the value of the scale record component.
    float
    Deprecated.
    Returns the value of the temperature record component.
    final String
    Deprecated.
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • RANGE

      public static final FloatRange RANGE
      Deprecated.
  • Constructor Details

    • BiomeSettings

      public BiomeSettings(float depth, float scale, float temperature, float downfall, TemperatureModifier modifier, boolean hasPrecipitation)
      Deprecated.
      Creates an instance of a BiomeSettings record class.
      Parameters:
      depth - the value for the depth record component
      scale - the value for the scale record component
      temperature - the value for the temperature record component
      downfall - the value for the downfall record component
      modifier - the value for the modifier record component
      hasPrecipitation - the value for the hasPrecipitation record component
  • Method Details

    • builder

      @AsOf("0.0.1") public static BiomeSettings.Builder builder()
      Deprecated.
      This method creates a new Builder object for creating instances of BiomeSettings.
      Returns:
      a new Builder object.
      Since:
      0.0.1
    • defaultSettings

      @AsOf("0.0.1") public static BiomeSettings 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

      public final String toString()
      Deprecated.
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Deprecated.
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • depth

      public float depth()
      Deprecated.
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • scale

      public float scale()
      Deprecated.
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • temperature

      public float temperature()
      Deprecated.
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • downfall

      public float downfall()
      Deprecated.
      Returns the value of the downfall record component.
      Returns:
      the value of the downfall record component
    • modifier

      public TemperatureModifier modifier()
      Deprecated.
      Returns the value of the modifier record component.
      Returns:
      the value of the modifier record component
    • hasPrecipitation

      public boolean hasPrecipitation()
      Deprecated.
      Returns the value of the hasPrecipitation record component.
      Returns:
      the value of the hasPrecipitation record component