Record Class TimeScript
java.lang.Object
java.lang.Record
kr.toxicity.model.api.script.TimeScript
- Record Components:
time- timescript- source script
- All Implemented Interfaces:
Comparable<Timed>, Consumer<Tracker>, Timed, AnimationScript
public record TimeScript(float time, @NotNull AnimationScript script)
extends Record
implements AnimationScript, Timed
Script with time
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimeScript(float time, @NotNull AnimationScript script) Creates an instance of aTimeScriptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSync()Checks this script should be called in tick thread@NotNull AnimationScriptscript()Returns the value of thescriptrecord component.floattime()Returns the value of thetimerecord component.@NotNull TimeScripttime(float newTime) Creates a timed scriptfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Method Details
-
isSync
public boolean isSync()Description copied from interface:AnimationScriptChecks this script should be called in tick thread- Specified by:
isSyncin interfaceAnimationScript- Returns:
- requires tick thread
-
accept
-
time
Description copied from interface:AnimationScriptCreates a timed script- Specified by:
timein interfaceAnimationScript- Parameters:
newTime- time- Returns:
- timed script
-
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
-
script
-