Contents
Record Class ClimateSearch.Result
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.climate.ClimateSearch.Result
- Enclosing class:
ClimateSearch
public static record ClimateSearch.Result(org.joml.Vector2i position, double score, long time_ms)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(org.joml.Vector2i position, double score, long time_ms) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Vector2iposition()Returns the value of thepositionrecord component.pretty()doublescore()Returns the value of thescorerecord component.longtime_ms()Returns the value of thetime_msrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(org.joml.Vector2i position, double score, long time_ms) Creates an instance of aResultrecord class.- Parameters:
position- the value for thepositionrecord componentscore- the value for thescorerecord componenttime_ms- the value for thetime_msrecord component
-
-
Method Details
-
pretty
-
toString
-
hashCode
-
equals
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. -
position
public org.joml.Vector2i position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
time_ms
public long time_ms()Returns the value of thetime_msrecord component.- Returns:
- the value of the
time_msrecord component
-