Record Class LimbData
java.lang.Object
java.lang.Record
com.ticxo.modelengine.api.generator.skin.LimbData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackcreateItem(String url) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisHead()Returns the value of theisHeadrecord component.limbType()Returns the value of thelimbTyperecord component.org.joml.Vector3fscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.org.joml.Vector3fReturns the value of thetranslationrecord component.
-
Constructor Details
-
LimbData
public LimbData(String limbType, org.joml.Vector3f translation, org.joml.Vector3f scale, boolean isHead) Creates an instance of aLimbDatarecord class.- Parameters:
limbType- the value for thelimbTyperecord componenttranslation- the value for thetranslationrecord componentscale- the value for thescalerecord componentisHead- the value for theisHeadrecord component
-
-
Method Details
-
createItem
-
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 '=='. -
limbType
Returns the value of thelimbTyperecord component.- Returns:
- the value of the
limbTyperecord component
-
translation
public org.joml.Vector3f translation()Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
scale
public org.joml.Vector3f scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
isHead
public boolean isHead()Returns the value of theisHeadrecord component.- Returns:
- the value of the
isHeadrecord component
-