Package dev.adlin.vts4j.core.event.impl
Record Class ModelAnimationEvent
java.lang.Object
java.lang.Record
dev.adlin.vts4j.core.event.impl.ModelAnimationEvent
- All Implemented Interfaces:
Event
-
Constructor Summary
ConstructorsConstructorDescriptionModelAnimationEvent(String animationEventType, Double animationEventTime, String animationEventData, String animationName, Double animationLength, Boolean isIdleAnimation, String modelId, String modelName, Boolean isLive2DItem) Creates an instance of aModelAnimationEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationEventDatarecord component.Returns the value of theanimationEventTimerecord component.Returns the value of theanimationEventTyperecord component.Returns the value of theanimationLengthrecord component.Returns the value of theanimationNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theisIdleAnimationrecord component.Returns the value of theisLive2DItemrecord component.modelId()Returns the value of themodelIdrecord component.Returns the value of themodelNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelAnimationEvent
public ModelAnimationEvent(String animationEventType, Double animationEventTime, String animationEventData, String animationName, Double animationLength, Boolean isIdleAnimation, String modelId, String modelName, Boolean isLive2DItem) Creates an instance of aModelAnimationEventrecord class.- Parameters:
animationEventType- the value for theanimationEventTyperecord componentanimationEventTime- the value for theanimationEventTimerecord componentanimationEventData- the value for theanimationEventDatarecord componentanimationName- the value for theanimationNamerecord componentanimationLength- the value for theanimationLengthrecord componentisIdleAnimation- the value for theisIdleAnimationrecord componentmodelId- the value for themodelIdrecord componentmodelName- the value for themodelNamerecord componentisLive2DItem- the value for theisLive2DItemrecord 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). -
animationEventType
Returns the value of theanimationEventTyperecord component.- Returns:
- the value of the
animationEventTyperecord component
-
animationEventTime
Returns the value of theanimationEventTimerecord component.- Returns:
- the value of the
animationEventTimerecord component
-
animationEventData
Returns the value of theanimationEventDatarecord component.- Returns:
- the value of the
animationEventDatarecord component
-
animationName
Returns the value of theanimationNamerecord component.- Returns:
- the value of the
animationNamerecord component
-
animationLength
Returns the value of theanimationLengthrecord component.- Returns:
- the value of the
animationLengthrecord component
-
isIdleAnimation
Returns the value of theisIdleAnimationrecord component.- Returns:
- the value of the
isIdleAnimationrecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
isLive2DItem
Returns the value of theisLive2DItemrecord component.- Returns:
- the value of the
isLive2DItemrecord component
-