Record Class BlueprintAnimation
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.BlueprintAnimation
- Record Components:
name- animation nameloop- loop modelength- frame lengthoverride- overrideanimator- group animatorscript- scriptemptyAnimator- empty animation ([0, 0, 0]).
public record BlueprintAnimation(@NotNull String name, AnimationIterator.Type loop, float length, boolean override, @NotNull @Unmodifiable Map<BoneName,BlueprintAnimator> animator, @Nullable BlueprintScript script, @NotNull List<AnimationMovement> emptyAnimator)
extends Record
A model animation.
-
Constructor Summary
ConstructorsConstructorDescriptionBlueprintAnimation(@NotNull String name, AnimationIterator.Type loop, float length, boolean override, @NotNull @Unmodifiable Map<BoneName, BlueprintAnimator> animator, @Nullable BlueprintScript script, @NotNull List<AnimationMovement> emptyAnimator) Creates an instance of aBlueprintAnimationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @Unmodifiable Map<BoneName, BlueprintAnimator> animator()Returns the value of theanimatorrecord component.@NotNull List<AnimationMovement> Returns the value of theemptyAnimatorrecord component.@NotNull AnimationIterator<AnimationMovement> Gets iterator.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatlength()Returns the value of thelengthrecord component.loop()Returns the value of thelooprecord component.@NotNull Stringname()Returns the value of thenamerecord component.booleanoverride()Returns the value of theoverriderecord component.@Nullable BlueprintScriptscript()Returns the value of thescriptrecord component.@Nullable BlueprintScriptscript(@NotNull AnimationModifier modifier) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlueprintAnimation
public BlueprintAnimation(@NotNull @NotNull String name, @NotNull AnimationIterator.Type loop, float length, boolean override, @NotNull @NotNull @Unmodifiable Map<BoneName, BlueprintAnimator> animator, @Nullable @Nullable BlueprintScript script, @NotNull @NotNull List<AnimationMovement> emptyAnimator) Creates an instance of aBlueprintAnimationrecord class.- Parameters:
name- the value for thenamerecord componentloop- the value for thelooprecord componentlength- the value for thelengthrecord componentoverride- the value for theoverriderecord componentanimator- the value for theanimatorrecord componentscript- the value for thescriptrecord componentemptyAnimator- the value for theemptyAnimatorrecord component
-
-
Method Details
-
script
-
emptyIterator
@NotNull public @NotNull AnimationIterator<AnimationMovement> emptyIterator(@NotNull AnimationIterator.Type type) Gets iterator.- Parameters:
type- type- Returns:
- 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
-
loop
Returns the value of thelooprecord component.- Returns:
- the value of the
looprecord component
-
length
public float length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
override
public boolean override()Returns the value of theoverriderecord component.- Returns:
- the value of the
overriderecord component
-
animator
Returns the value of theanimatorrecord component.- Returns:
- the value of the
animatorrecord component
-
script
Returns the value of thescriptrecord component.- Returns:
- the value of the
scriptrecord component
-
emptyAnimator
Returns the value of theemptyAnimatorrecord component.- Returns:
- the value of the
emptyAnimatorrecord component
-