Record Class Scene
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.assimp.Scene
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimations
record component.org.joml.Matrix4f
createBoneWorldTransform
(RenderContext context, Scene scene, Mesh mesh, Animation animation, Node currentNode, org.joml.Matrix4f parentTransform, Node targetNode) final boolean
Indicates whether some other object is "equal to" this one.static Scene
fromAssimp
(org.lwjgl.assimp.AIScene scene) static Scene
fromAssimp
(org.lwjgl.assimp.AIScene scene, net.minecraft.resources.ResourceLocation backupTexture) getAnimation
(String name) getAnimationOrDefault
(String name, String defaultName) org.joml.Matrix4f
getGlobalTransform
(String node) final int
hashCode()
Returns a hash code value for this object.Returns the value of thematerials
record component.meshes()
Returns the value of themeshes
record component.rootNode()
Returns the value of therootNode
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Scene
public Scene(Node rootNode, List<Material> materials, List<Mesh> meshes, List<Animation> animations) Creates an instance of aScene
record class.- Parameters:
rootNode
- the value for therootNode
record componentmaterials
- the value for thematerials
record componentmeshes
- the value for themeshes
record componentanimations
- the value for theanimations
record component
-
-
Method Details
-
getAnimationOrDefault
-
getAnimation
-
getGlobalTransform
-
getNode
-
createBoneWorldTransform
-
fromAssimp
-
fromAssimp
public static Scene fromAssimp(org.lwjgl.assimp.AIScene scene, net.minecraft.resources.ResourceLocation backupTexture) -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
rootNode
Returns the value of therootNode
record component.- Returns:
- the value of the
rootNode
record component
-
materials
Returns the value of thematerials
record component.- Returns:
- the value of the
materials
record component
-
meshes
Returns the value of themeshes
record component.- Returns:
- the value of the
meshes
record component
-
animations
Returns the value of theanimations
record component.- Returns:
- the value of the
animations
record component
-