Record Class PatternSettings.ZappySettings
java.lang.Object
java.lang.Record
at.petrak.hexcasting.client.render.PatternSettings.ZappySettings
- Record Components:
hops- number of little pulsesvariance- how jumpy/distorting the pulses arespeed- how fast the pulses goflowIrregular- randomness of pulse travelreadabilityOffset- how curved inward the corners arelastSegmentLenProportion- length of the last segment relative to the others. used for increased readability.
- Enclosing class:
- PatternSettings
public static record PatternSettings.ZappySettings(int hops, float variance, float speed, float flowIrregular, float readabilityOffset, float lastSegmentLenProportion)
extends Record
Controls how the pattern is zappified.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic floatstatic float -
Constructor Summary
ConstructorsConstructorDescriptionZappySettings(int hops, float variance, float speed, float flowIrregular, float readabilityOffset, float lastSegmentLenProportion) Creates an instance of aZappySettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theflowIrregularrecord component.final inthashCode()Returns a hash code value for this object.inthops()Returns the value of thehopsrecord component.floatReturns the value of thelastSegmentLenProportionrecord component.floatReturns the value of thereadabilityOffsetrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.floatvariance()Returns the value of thevariancerecord component.
-
Field Details
-
READABLE_OFFSET
public static float READABLE_OFFSET -
READABLE_SEGMENT
public static float READABLE_SEGMENT -
STATIC
-
READABLE
-
WOBBLY
-
-
Constructor Details
-
ZappySettings
public ZappySettings(int hops, float variance, float speed, float flowIrregular, float readabilityOffset, float lastSegmentLenProportion) Creates an instance of aZappySettingsrecord class.- Parameters:
hops- the value for thehopsrecord componentvariance- the value for thevariancerecord componentspeed- the value for thespeedrecord componentflowIrregular- the value for theflowIrregularrecord componentreadabilityOffset- the value for thereadabilityOffsetrecord componentlastSegmentLenProportion- the value for thelastSegmentLenProportionrecord component
-
-
Method Details
-
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 '=='. -
hops
public int hops()Returns the value of thehopsrecord component.- Returns:
- the value of the
hopsrecord component
-
variance
public float variance()Returns the value of thevariancerecord component.- Returns:
- the value of the
variancerecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-
flowIrregular
public float flowIrregular()Returns the value of theflowIrregularrecord component.- Returns:
- the value of the
flowIrregularrecord component
-
readabilityOffset
public float readabilityOffset()Returns the value of thereadabilityOffsetrecord component.- Returns:
- the value of the
readabilityOffsetrecord component
-
lastSegmentLenProportion
public float lastSegmentLenProportion()Returns the value of thelastSegmentLenProportionrecord component.- Returns:
- the value of the
lastSegmentLenProportionrecord component
-