Record Class Node
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.render.entity.renderers.assimp.Node
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchildren()
Returns the value of thechildren
record component.final boolean
Indicates whether some other object is "equal to" this one.static Node
fromAssimp
(org.lwjgl.assimp.AINode node) final int
hashCode()
Returns a hash code value for this object.it.unimi.dsi.fastutil.ints.IntList
meshes()
Returns the value of themeshes
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.org.joml.Matrix4f
Returns the value of thetransformation
record component.
-
Constructor Details
-
Node
-
Node
public Node(String name, org.joml.Matrix4f transformation, it.unimi.dsi.fastutil.ints.IntList meshes, List<Node> children) Creates an instance of aNode
record class.- Parameters:
name
- the value for thename
record componenttransformation
- the value for thetransformation
record componentmeshes
- the value for themeshes
record componentchildren
- the value for thechildren
record component
-
-
Method Details
-
fromAssimp
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
transformation
public org.joml.Matrix4f transformation()Returns the value of thetransformation
record component.- Returns:
- the value of the
transformation
record component
-
meshes
public it.unimi.dsi.fastutil.ints.IntList meshes()Returns the value of themeshes
record component.- Returns:
- the value of the
meshes
record component
-
children
Returns the value of thechildren
record component.- Returns:
- the value of the
children
record component
-