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 aMeshrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbones()Returns the value of thebonesrecord component.BoneWeight[][]Returns the value of theboneWeightsrecord component.static voidcreateVAO(RenderedObject renderedObject, List<Vertex> vertices, List<Face> faces, BoneWeight[][] boneWeights) final booleanIndicates whether some other object is "equal to" this one.faces()Returns the value of thefacesrecord component.intfindBoneWithNodeName(String nodeName) fromAssimp(org.lwjgl.assimp.AIScene scene) static MeshfromAssimp(org.lwjgl.assimp.AIScene scene, org.lwjgl.assimp.AIMesh mesh) final inthashCode()Returns a hash code value for this object.intReturns the value of thematerialIdrecord component.Returns the value of therenderedObjectrecord component.final StringtoString()Returns a string representation of this record class.vertices()Returns the value of theverticesrecord 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 aMeshrecord class.- Parameters:
faces- the value for thefacesrecord componentvertices- the value for theverticesrecord componentmaterialId- the value for thematerialIdrecord componentbones- the value for thebonesrecord componentboneWeights- the value for theboneWeightsrecord componentrenderedObject- the value for therenderedObjectrecord 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 thefacesrecord component.- Returns:
- the value of the
facesrecord component
-
vertices
Returns the value of theverticesrecord component.- Returns:
- the value of the
verticesrecord component
-
materialId
public int materialId()Returns the value of thematerialIdrecord component.- Returns:
- the value of the
materialIdrecord component
-
bones
Returns the value of thebonesrecord component.- Returns:
- the value of the
bonesrecord component
-
boneWeights
Returns the value of theboneWeightsrecord component.- Returns:
- the value of the
boneWeightsrecord component
-
renderedObject
Returns the value of therenderedObjectrecord component.- Returns:
- the value of the
renderedObjectrecord component
-