Record Class LimbData

java.lang.Object
java.lang.Record
com.ticxo.modelengine.api.generator.skin.LimbData

public record LimbData(String limbType, org.joml.Vector3f translation, org.joml.Vector3f scale, boolean isHead) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    LimbData(String limbType, org.joml.Vector3f translation, org.joml.Vector3f scale, boolean isHead)
    Creates an instance of a LimbData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isHead record component.
    Returns the value of the limbType record component.
    org.joml.Vector3f
    Returns the value of the scale record component.
    final String
    Returns a string representation of this record class.
    org.joml.Vector3f
    Returns the value of the translation record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LimbData

      public LimbData(String limbType, org.joml.Vector3f translation, org.joml.Vector3f scale, boolean isHead)
      Creates an instance of a LimbData record class.
      Parameters:
      limbType - the value for the limbType record component
      translation - the value for the translation record component
      scale - the value for the scale record component
      isHead - the value for the isHead record component
  • Method Details

    • createItem

      public org.bukkit.inventory.ItemStack createItem(String url)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • limbType

      public String limbType()
      Returns the value of the limbType record component.
      Returns:
      the value of the limbType record component
    • translation

      public org.joml.Vector3f translation()
      Returns the value of the translation record component.
      Returns:
      the value of the translation record component
    • scale

      public org.joml.Vector3f scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • isHead

      public boolean isHead()
      Returns the value of the isHead record component.
      Returns:
      the value of the isHead record component