Package kr.toxicity.model.api.script
Record Class BlueprintScript
java.lang.Object
java.lang.Record
kr.toxicity.model.api.script.BlueprintScript
- Record Components:
name- script namelength- 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) final inthashCode()Returns a hash code value for this object.@NotNull AnimationIterator<TimeScript> iterator()floatlength()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) -
iterator
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
length
public float length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
scripts
Returns the value of thescriptsrecord component.- Returns:
- the value of the
scriptsrecord component
-