Record Class ClimateSearch.Result
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.climate.ClimateSearch.Result
- Enclosing class:
ClimateSearch
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.position()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.
-
Field Details
-
position
The field for thepositionrecord component. -
score
private final double scoreThe field for thescorerecord component. -
time_ms
private final long time_msThe field for thetime_msrecord component.
-
-
Constructor Details
-
Result
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
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
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
-