Record Class Triangle
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.smd.model.Triangle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.material()
Returns the value of thematerial
record component.float
normx()
Returns the value of thenormx
record component.float
normy()
Returns the value of thenormy
record component.float
normz()
Returns the value of thenormz
record component.short
Returns the value of theparentBone
record component.static Triangle
final String
toString()
Returns a string representation of this record class.float
u()
Returns the value of theu
record component.float
v()
Returns the value of thev
record component.Weight[]
weights()
Returns the value of theweights
record component.float
x()
Returns the value of thex
record component.float
y()
Returns the value of they
record component.float
z()
Returns the value of thez
record component.
-
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 aTriangle
record class.- Parameters:
material
- the value for thematerial
record componentparentBone
- the value for theparentBone
record componentx
- the value for thex
record componenty
- the value for they
record componentz
- the value for thez
record componentnormx
- the value for thenormx
record componentnormy
- the value for thenormy
record componentnormz
- the value for thenormz
record componentu
- the value for theu
record componentv
- the value for thev
record componentweights
- the value for theweights
record component
-
-
Method Details
-
read
- Throws:
IOException
-
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 '=='. -
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. -
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. -
material
Returns the value of thematerial
record component.- Returns:
- the value of the
material
record component
-
parentBone
public short parentBone()Returns the value of theparentBone
record component.- Returns:
- the value of the
parentBone
record component
-
x
public float x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
public float y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
z
public float z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
normx
public float normx()Returns the value of thenormx
record component.- Returns:
- the value of the
normx
record component
-
normy
public float normy()Returns the value of thenormy
record component.- Returns:
- the value of the
normy
record component
-
normz
public float normz()Returns the value of thenormz
record component.- Returns:
- the value of the
normz
record component
-
u
public float u()Returns the value of theu
record component.- Returns:
- the value of the
u
record component
-
v
public float v()Returns the value of thev
record component.- Returns:
- the value of the
v
record component
-
weights
Returns the value of theweights
record component.- Returns:
- the value of the
weights
record component
-