Contents
Record Class Sample.Result3D
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.utils.Sample.Result3D
- Enclosing class:
Sample
public static record Sample.Result3D(int airWeight, int sampledBlock, int originalBlock)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult3D(int airWeight, int sampledBlock, int originalBlock) Creates an instance of aResult3Drecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theairWeightrecord 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
-
Result3D
public Result3D(int airWeight, int sampledBlock, int originalBlock) Creates an instance of aResult3Drecord class.- Parameters:
airWeight- the value for theairWeightrecord componentsampledBlock- the value for thesampledBlockrecord 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. -
airWeight
public int airWeight()Returns the value of theairWeightrecord component.- Returns:
- the value of the
airWeightrecord component
-
sampledBlock
public int sampledBlock()Returns the value of thesampledBlockrecord component.- Returns:
- the value of the
sampledBlockrecord component
-
originalBlock
public int originalBlock()Returns the value of theoriginalBlockrecord component.- Returns:
- the value of the
originalBlockrecord component
-