Contents
Record Class Sample.Result2D
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.utils.Sample.Result2D
- Enclosing class:
Sample
public static record Sample.Result2D(double deltaHeight, int sampledBlock, int currentHeight, int originalBlock)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult2D(double deltaHeight, int sampledBlock, int currentHeight, int originalBlock) Creates an instance of aResult2Drecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecurrentHeightrecord component.doubleReturns the value of thedeltaHeightrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theoriginalBlockrecord component.intReturns the value of thesampledBlockrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result2D
public Result2D(double deltaHeight, int sampledBlock, int currentHeight, int originalBlock) Creates an instance of aResult2Drecord class.- Parameters:
deltaHeight- the value for thedeltaHeightrecord componentsampledBlock- the value for thesampledBlockrecord componentcurrentHeight- the value for thecurrentHeightrecord componentoriginalBlock- the value for theoriginalBlockrecord component
-
-
Method Details
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
deltaHeight
public double deltaHeight()Returns the value of thedeltaHeightrecord component.- Returns:
- the value of the
deltaHeightrecord component
-
sampledBlock
public int sampledBlock()Returns the value of thesampledBlockrecord component.- Returns:
- the value of the
sampledBlockrecord component
-
currentHeight
public int currentHeight()Returns the value of thecurrentHeightrecord component.- Returns:
- the value of the
currentHeightrecord component
-
originalBlock
public int originalBlock()Returns the value of theoriginalBlockrecord component.- Returns:
- the value of the
originalBlockrecord component
-