Record Class PatternSettings.StrokeSettings
java.lang.Object
java.lang.Record
at.petrak.hexcasting.client.render.PatternSettings.StrokeSettings
- Enclosing class:
- PatternSettings
public static record PatternSettings.StrokeSettings(double innerWidth, double outerWidth, double startDotRadius, double gridDotsRadius)
extends Record
Settings for stroke and dot sizings. If you want to *not* render dots or inner/outer you should prefer setting
alpha to 0 in PatternColors.
-
Constructor Summary
ConstructorsConstructorDescriptionStrokeSettings(double innerWidth, double outerWidth, double startDotRadius, double gridDotsRadius) Creates an instance of aStrokeSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromStroke(double stroke) doubleReturns the value of thegridDotsRadiusrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinnerWidthrecord component.doubleReturns the value of theouterWidthrecord component.doubleReturns the value of thestartDotRadiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StrokeSettings
public StrokeSettings(double innerWidth, double outerWidth, double startDotRadius, double gridDotsRadius) Creates an instance of aStrokeSettingsrecord class.- Parameters:
innerWidth- the value for theinnerWidthrecord componentouterWidth- the value for theouterWidthrecord componentstartDotRadius- the value for thestartDotRadiusrecord componentgridDotsRadius- the value for thegridDotsRadiusrecord component
-
-
Method Details
-
fromStroke
-
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. All components in this record class are compared with '=='. -
innerWidth
public double innerWidth()Returns the value of theinnerWidthrecord component.- Returns:
- the value of the
innerWidthrecord component
-
outerWidth
public double outerWidth()Returns the value of theouterWidthrecord component.- Returns:
- the value of the
outerWidthrecord component
-
startDotRadius
public double startDotRadius()Returns the value of thestartDotRadiusrecord component.- Returns:
- the value of the
startDotRadiusrecord component
-
gridDotsRadius
public double gridDotsRadius()Returns the value of thegridDotsRadiusrecord component.- Returns:
- the value of the
gridDotsRadiusrecord component
-