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 theanimationsrecord component.org.joml.Matrix4fcreateBoneWorldTransform(RenderContext context, Scene scene, Mesh mesh, Animation animation, Node currentNode, org.joml.Matrix4f parentTransform, Node targetNode) final booleanIndicates whether some other object is "equal to" this one.static ScenefromAssimp(org.lwjgl.assimp.AIScene scene) static ScenefromAssimp(org.lwjgl.assimp.AIScene scene, net.minecraft.resources.ResourceLocation backupTexture) getAnimation(String name) getAnimationOrDefault(String name, String defaultName) org.joml.Matrix4fgetGlobalTransform(String node) final inthashCode()Returns a hash code value for this object.Returns the value of thematerialsrecord component.meshes()Returns the value of themeshesrecord component.rootNode()Returns the value of therootNoderecord component.final StringtoString()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 aScenerecord class.- Parameters:
rootNode- the value for therootNoderecord componentmaterials- the value for thematerialsrecord componentmeshes- the value for themeshesrecord componentanimations- the value for theanimationsrecord 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 therootNoderecord component.- Returns:
- the value of the
rootNoderecord component
-
materials
Returns the value of thematerialsrecord component.- Returns:
- the value of the
materialsrecord component
-
meshes
Returns the value of themeshesrecord component.- Returns:
- the value of the
meshesrecord component
-
animations
Returns the value of theanimationsrecord component.- Returns:
- the value of the
animationsrecord component
-