Record Class BlueprintScript
java.lang.Object
java.lang.Record
kr.toxicity.model.api.script.BlueprintScript
- Record Components:
name- script nametype- typelength- playtimescripts- scripts
@Internal
public record BlueprintScript(@NotNull String name, AnimationIterator.Type type, float length, @NotNull List<TimeScript> scripts)
extends Record
A script data of blueprint.
-
Constructor Summary
ConstructorsConstructorDescriptionBlueprintScript(@NotNull String name, AnimationIterator.Type type, float length, @NotNull List<TimeScript> scripts) Creates an instance of aBlueprintScriptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @NotNull BlueprintScriptfromEmpty(@NotNull ModelAnimation animation) Creates empty scriptfinal inthashCode()Returns a hash code value for this object.@NotNull AnimationIterator<TimeScript> iterator(@NotNull AnimationModifier modifier) Creates animation iterator of this scriptfloatlength()Returns the value of thelengthrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull List<TimeScript> scripts()Returns the value of thescriptsrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
BlueprintScript
public BlueprintScript(@NotNull @NotNull String name, @NotNull AnimationIterator.Type type, float length, @NotNull @NotNull List<TimeScript> scripts) Creates an instance of aBlueprintScriptrecord class.
-
-
Method Details
-
fromEmpty
@NotNull public static @NotNull BlueprintScript fromEmpty(@NotNull @NotNull ModelAnimation animation) Creates empty script- Parameters:
animation- animation- Returns:
- empty script
-
iterator
@NotNull public @NotNull AnimationIterator<TimeScript> iterator(@NotNull @NotNull AnimationModifier modifier) Creates animation iterator of this script- Parameters:
modifier- modifier- Returns:
- animation iterator
-
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. -
name
-
type
-
length
-
scripts
-