Record Class BlockAnimationFrame
java.lang.Object
java.lang.Record
dev.thorinwasher.blockanimator.api.animation.BlockAnimationFrame
public record BlockAnimationFrame(org.joml.Vector3d position, BlockMoveType moveType, @Nullable org.joml.Matrix4f transform)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockAnimationFrame(org.joml.Vector3d position, BlockMoveType moveType, @Nullable org.joml.Matrix4f transform) Creates an instance of aBlockAnimationFramerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.moveType()Returns the value of themoveTyperecord component.org.joml.Vector3dposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.@Nullable org.joml.Matrix4fReturns the value of thetransformrecord component.
-
Constructor Details
-
BlockAnimationFrame
public BlockAnimationFrame(org.joml.Vector3d position, BlockMoveType moveType, @Nullable @Nullable org.joml.Matrix4f transform) Creates an instance of aBlockAnimationFramerecord class.- Parameters:
position- the value for thepositionrecord componentmoveType- the value for themoveTyperecord componenttransform- the value for thetransformrecord component
-
-
Method Details
-
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). -
position
public org.joml.Vector3d position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
moveType
Returns the value of themoveTyperecord component.- Returns:
- the value of the
moveTyperecord component
-
transform
@Nullable public @Nullable org.joml.Matrix4f transform()Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-