Record Class BreastState
java.lang.Object
java.lang.Record
com.wildfire.common.entitydata.BreastState
public record BreastState(float breastSize, float cleavage, org.joml.Vector3fc offsets)
extends Record
Minimal variant of
Breasts to allow for mirroring serialization of Breasts.CODEC more easily-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBreastState(float breastSize, float cleavage, org.joml.Vector3fc offsets) Creates an instance of aBreastStaterecord class.BreastState(BreastDataComponent component) BreastState(Breasts breasts) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thebreastSizerecord component.floatcleavage()Returns the value of thecleavagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Vector3fcoffsets()Returns the value of theoffsetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BreastState
-
BreastState
-
BreastState
public BreastState(float breastSize, float cleavage, org.joml.Vector3fc offsets) Creates an instance of aBreastStaterecord class.- Parameters:
breastSize- the value for thebreastSizerecord componentcleavage- the value for thecleavagerecord componentoffsets- the value for theoffsetsrecord 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. -
breastSize
public float breastSize()Returns the value of thebreastSizerecord component.- Returns:
- the value of the
breastSizerecord component
-
cleavage
public float cleavage()Returns the value of thecleavagerecord component.- Returns:
- the value of the
cleavagerecord component
-
offsets
public org.joml.Vector3fc offsets()Returns the value of theoffsetsrecord component.- Returns:
- the value of the
offsetsrecord component
-