Record Class HeadProperties
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.pokemon.species.palette.head.HeadProperties
- Record Components:
headBoneNames- The set of head bone names (expected to be lower-case).minimumYaw- The minimum yaw angle (in degrees).maximumYaw- The maximum yaw angle (in degrees).minimumPitch- The minimum pitch angle (in degrees).maximumPitch- The maximum pitch angle (in degrees).
public record HeadProperties(Set<String> headBoneNames, float minimumYaw, float maximumYaw, float minimumPitch, float maximumPitch)
extends Record
The definition for head movement properties for a palette.
If a palette does not have this defined, the head will not move.
The head bone names here are case insensitive and takes both single string and list of strings.
If a palette does not have this defined, the head will not move.
The head bone names here are case insensitive and takes both single string and list of strings.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHeadProperties(List<String> headBoneNames, float minimumYaw, float maximumYaw, float minimumPitch, float maximumPitch) HeadProperties(Set<String> headBoneNames, float minimumYaw, float maximumYaw, float minimumPitch, float maximumPitch) Creates an instance of aHeadPropertiesrecord class. -
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.Returns the value of theheadBoneNamesrecord component.floatReturns the value of themaximumPitchrecord component.floatReturns the value of themaximumYawrecord component.floatReturns the value of theminimumPitchrecord component.floatReturns the value of theminimumYawrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
HEAD_BONE_NAME_CODEC
-
CODEC
-
-
Constructor Details
-
HeadProperties
-
HeadProperties
public HeadProperties(Set<String> headBoneNames, float minimumYaw, float maximumYaw, float minimumPitch, float maximumPitch) Creates an instance of aHeadPropertiesrecord class.- Parameters:
headBoneNames- the value for theheadBoneNamesrecord componentminimumYaw- the value for theminimumYawrecord componentmaximumYaw- the value for themaximumYawrecord componentminimumPitch- the value for theminimumPitchrecord componentmaximumPitch- the value for themaximumPitchrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
headBoneNames
Returns the value of theheadBoneNamesrecord component.- Returns:
- the value of the
headBoneNamesrecord component
-
minimumYaw
public float minimumYaw()Returns the value of theminimumYawrecord component.- Returns:
- the value of the
minimumYawrecord component
-
maximumYaw
public float maximumYaw()Returns the value of themaximumYawrecord component.- Returns:
- the value of the
maximumYawrecord component
-
minimumPitch
public float minimumPitch()Returns the value of theminimumPitchrecord component.- Returns:
- the value of the
minimumPitchrecord component
-
maximumPitch
public float maximumPitch()Returns the value of themaximumPitchrecord component.- Returns:
- the value of the
maximumPitchrecord component
-