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 TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.material()Returns the value of thematerialrecord component.floatnormx()Returns the value of thenormxrecord component.floatnormy()Returns the value of thenormyrecord component.floatnormz()Returns the value of thenormzrecord component.shortReturns the value of theparentBonerecord component.static Trianglefinal StringtoString()Returns a string representation of this record class.floatu()Returns the value of theurecord component.floatv()Returns the value of thevrecord component.Weight[]weights()Returns the value of theweightsrecord component.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.floatz()Returns the value of thezrecord 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 aTrianglerecord class.- Parameters:
material- the value for thematerialrecord componentparentBone- the value for theparentBonerecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentnormx- the value for thenormxrecord componentnormy- the value for thenormyrecord componentnormz- the value for thenormzrecord componentu- the value for theurecord componentv- the value for thevrecord componentweights- the value for theweightsrecord 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 thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
parentBone
public short parentBone()Returns the value of theparentBonerecord component.- Returns:
- the value of the
parentBonerecord component
-
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public float z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
normx
public float normx()Returns the value of thenormxrecord component.- Returns:
- the value of the
normxrecord component
-
normy
public float normy()Returns the value of thenormyrecord component.- Returns:
- the value of the
normyrecord component
-
normz
public float normz()Returns the value of thenormzrecord component.- Returns:
- the value of the
normzrecord component
-
u
public float u()Returns the value of theurecord component.- Returns:
- the value of the
urecord component
-
v
public float v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-
weights
Returns the value of theweightsrecord component.- Returns:
- the value of the
weightsrecord component
-