java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.smd.model.Triangle

public record Triangle(String material, short parentBone, float x, float y, float z, float normx, float normy, float normz, float u, float v, Weight[] weights) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Triangle(String material, short parentBone, float x, float y, float z, float normx, float normy, float normz, float u, float v, Weight[] weights)
    Creates an instance of a Triangle record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    Returns the value of the material record component.
    float
    Returns the value of the normx record component.
    float
    Returns the value of the normy record component.
    float
    Returns the value of the normz record component.
    short
    Returns the value of the parentBone record component.
    static Triangle
    read(DataInput in, String material)
     
    final String
    Returns a string representation of this record class.
    float
    u()
    Returns the value of the u record component.
    float
    v()
    Returns the value of the v record component.
    Returns the value of the weights record component.
    float
    x()
    Returns the value of the x record component.
    float
    y()
    Returns the value of the y record component.
    float
    z()
    Returns the value of the z record component.

    Methods inherited from class java.lang.Object

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

    • Triangle

      public Triangle(String material, short parentBone, float x, float y, float z, float normx, float normy, float normz, float u, float v, Weight[] weights)
      Creates an instance of a Triangle record class.
      Parameters:
      material - the value for the material record component
      parentBone - the value for the parentBone record component
      x - the value for the x record component
      y - the value for the y record component
      z - the value for the z record component
      normx - the value for the normx record component
      normy - the value for the normy record component
      normz - the value for the normz record component
      u - the value for the u record component
      v - the value for the v record component
      weights - the value for the weights record component
  • Method Details

    • read

      public static Triangle read(DataInput in, String material) throws IOException
      Throws:
      IOException
    • equals

      public 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.
    • hashCode

      public 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
    • 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
    • material

      public String material()
      Returns the value of the material record component.
      Returns:
      the value of the material record component
    • parentBone

      public short parentBone()
      Returns the value of the parentBone record component.
      Returns:
      the value of the parentBone record component
    • x

      public float x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public float y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      public float z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • normx

      public float normx()
      Returns the value of the normx record component.
      Returns:
      the value of the normx record component
    • normy

      public float normy()
      Returns the value of the normy record component.
      Returns:
      the value of the normy record component
    • normz

      public float normz()
      Returns the value of the normz record component.
      Returns:
      the value of the normz record component
    • u

      public float u()
      Returns the value of the u record component.
      Returns:
      the value of the u record component
    • v

      public float v()
      Returns the value of the v record component.
      Returns:
      the value of the v record component
    • weights

      public Weight[] weights()
      Returns the value of the weights record component.
      Returns:
      the value of the weights record component