Record Class ClipSource.Event
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.internal.client.armature.anim.ClipSource.Event
- Enclosing class:
ClipSource
public static record ClipSource.Event(float time, ClipSource.EventKind kind, String effect, @Nullable String locator, @Nullable MolangExpr script)
extends Record
Something a clip does at a moment: a sound, a particle, or an instruction (Molang to run, which listeners also
get as text).
-
Constructor Summary
ConstructorsConstructorDescriptionEvent(float time, ClipSource.EventKind kind, String effect, @Nullable String locator, @Nullable MolangExpr script) Creates an instance of aEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptioneffect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.@Nullable Stringlocator()Returns the value of thelocatorrecord component.@Nullable MolangExprscript()Returns the value of thescriptrecord component.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Event
public Event(float time, ClipSource.EventKind kind, String effect, @Nullable @Nullable String locator, @Nullable @Nullable MolangExpr script) Creates an instance of aEventrecord class.- Parameters:
time- the value for thetimerecord componentkind- the value for thekindrecord componenteffect- the value for theeffectrecord componentlocator- the value for thelocatorrecord componentscript- the value for thescriptrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
locator
Returns the value of thelocatorrecord component.- Returns:
- the value of the
locatorrecord component
-
script
Returns the value of thescriptrecord component.- Returns:
- the value of the
scriptrecord component
-