Contents
Record Class SculptOperation.Kernel
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.tooloperations.SculptOperation.Kernel
- Enclosing class:
SculptOperation
public static record SculptOperation.Kernel(double stable, double range, int[] weights, int total)
extends Record
-
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.doublerange()Returns the value of therangerecord component.doublestable()Returns the value of thestablerecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.int[]weights()Returns the value of theweightsrecord component.
-
Constructor Details
-
Kernel
public Kernel(double stable, double range, int[] weights) -
Kernel
public Kernel(double stable, double range, int[] weights, int total) Creates an instance of aKernelrecord class.- Parameters:
stable- the value for thestablerecord componentrange- the value for therangerecord componentweights- the value for theweightsrecord componenttotal- the value for thetotalrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
stable
public double stable()Returns the value of thestablerecord component.- Returns:
- the value of the
stablerecord component
-
range
public double range()Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
weights
public int[] weights()Returns the value of theweightsrecord component.- Returns:
- the value of the
weightsrecord component
-
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-