Record Class Mesh
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.assimp.Mesh
public record Mesh(List<Face> faces, List<Vertex> vertices, int materialId, List<Bone> bones, BoneWeight[][] boneWeights, RenderedObject renderedObject)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMesh
(List<Face> faces, List<Vertex> vertices, int materialId, List<Bone> bones, BoneWeight[][] boneWeights, RenderedObject renderedObject) Creates an instance of aMesh
record class. -
Method Summary
Modifier and TypeMethodDescriptionbones()
Returns the value of thebones
record component.BoneWeight[][]
Returns the value of theboneWeights
record component.static void
createVAO
(RenderedObject renderedObject, List<Vertex> vertices, List<Face> faces, BoneWeight[][] boneWeights) final boolean
Indicates whether some other object is "equal to" this one.faces()
Returns the value of thefaces
record component.int
findBoneWithNodeName
(String nodeName) fromAssimp
(org.lwjgl.assimp.AIScene scene) static Mesh
fromAssimp
(org.lwjgl.assimp.AIScene scene, org.lwjgl.assimp.AIMesh mesh) final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thematerialId
record component.Returns the value of therenderedObject
record component.final String
toString()
Returns a string representation of this record class.vertices()
Returns the value of thevertices
record component.
-
Constructor Details
-
Mesh
public Mesh(List<Face> faces, List<Vertex> vertices, int materialId, List<Bone> bones, BoneWeight[][] boneWeights, RenderedObject renderedObject) Creates an instance of aMesh
record class.- Parameters:
faces
- the value for thefaces
record componentvertices
- the value for thevertices
record componentmaterialId
- the value for thematerialId
record componentbones
- the value for thebones
record componentboneWeights
- the value for theboneWeights
record componentrenderedObject
- the value for therenderedObject
record component
-
-
Method Details
-
findBoneWithNodeName
-
fromAssimp
-
fromAssimp
-
createVAO
public static void createVAO(RenderedObject renderedObject, List<Vertex> vertices, List<Face> faces, BoneWeight[][] boneWeights) -
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 '=='. -
faces
Returns the value of thefaces
record component.- Returns:
- the value of the
faces
record component
-
vertices
Returns the value of thevertices
record component.- Returns:
- the value of the
vertices
record component
-
materialId
public int materialId()Returns the value of thematerialId
record component.- Returns:
- the value of the
materialId
record component
-
bones
Returns the value of thebones
record component.- Returns:
- the value of the
bones
record component
-
boneWeights
Returns the value of theboneWeights
record component.- Returns:
- the value of the
boneWeights
record component
-
renderedObject
Returns the value of therenderedObject
record component.- Returns:
- the value of the
renderedObject
record component
-