Record Class BlockbenchAnimationImpl

java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.animation.BlockbenchAnimationImpl
All Implemented Interfaces:
BlockbenchAnimation

public record BlockbenchAnimationImpl(UUID uniqueId, String name, String loop, boolean override, float length, int snapping, String animationTimeUpdate, String blendWeight, String startDelay, String loopDelay, Map<UUID,BlockbenchAnimatorImpl> animators, @Nullable BlockbenchAnimatorImpl effectAnimator) extends Record implements BlockbenchAnimation
  • Constructor Details

    • BlockbenchAnimationImpl

      public BlockbenchAnimationImpl(UUID uniqueId, String name, String loop, boolean override, float length, int snapping, String animationTimeUpdate, String blendWeight, String startDelay, String loopDelay, Map<UUID,BlockbenchAnimatorImpl> animators, @Nullable @Nullable BlockbenchAnimatorImpl effectAnimator)
      Creates an instance of a BlockbenchAnimationImpl record class.
      Parameters:
      uniqueId - the value for the uniqueId record component
      name - the value for the name record component
      loop - the value for the loop record component
      override - the value for the override record component
      length - the value for the length record component
      snapping - the value for the snapping record component
      animationTimeUpdate - the value for the animationTimeUpdate record component
      blendWeight - the value for the blendWeight record component
      startDelay - the value for the startDelay record component
      loopDelay - the value for the loopDelay record component
      animators - the value for the animators record component
      effectAnimator - the value for the effectAnimator record component
  • Method Details

    • animator

      @Nullable public @Nullable BlockbenchAnimator animator(UUID uniqueId)
      Specified by:
      animator in interface BlockbenchAnimation
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uniqueId

      @SerializedName("uuid") public UUID uniqueId()
      Returns the value of the uniqueId record component.
      Specified by:
      uniqueId in interface BlockbenchAnimation
      Returns:
      the value of the uniqueId record component
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface BlockbenchAnimation
      Returns:
      the value of the name record component
    • loop

      public String loop()
      Returns the value of the loop record component.
      Specified by:
      loop in interface BlockbenchAnimation
      Returns:
      the value of the loop record component
    • override

      public boolean override()
      Returns the value of the override record component.
      Specified by:
      override in interface BlockbenchAnimation
      Returns:
      the value of the override record component
    • length

      public float length()
      Returns the value of the length record component.
      Specified by:
      length in interface BlockbenchAnimation
      Returns:
      the value of the length record component
    • snapping

      public int snapping()
      Returns the value of the snapping record component.
      Specified by:
      snapping in interface BlockbenchAnimation
      Returns:
      the value of the snapping record component
    • animationTimeUpdate

      @SerializedName("anim_time_update") public String animationTimeUpdate()
      Returns the value of the animationTimeUpdate record component.
      Specified by:
      animationTimeUpdate in interface BlockbenchAnimation
      Returns:
      the value of the animationTimeUpdate record component
    • blendWeight

      @SerializedName("blend_weight") public String blendWeight()
      Returns the value of the blendWeight record component.
      Specified by:
      blendWeight in interface BlockbenchAnimation
      Returns:
      the value of the blendWeight record component
    • startDelay

      @SerializedName("start_delay") public String startDelay()
      Returns the value of the startDelay record component.
      Specified by:
      startDelay in interface BlockbenchAnimation
      Returns:
      the value of the startDelay record component
    • loopDelay

      @SerializedName("loop_delay") public String loopDelay()
      Returns the value of the loopDelay record component.
      Specified by:
      loopDelay in interface BlockbenchAnimation
      Returns:
      the value of the loopDelay record component
    • animators

      public Map<UUID,BlockbenchAnimatorImpl> animators()
      Returns the value of the animators record component.
      Specified by:
      animators in interface BlockbenchAnimation
      Returns:
      the value of the animators record component
    • effectAnimator

      @Nullable public @Nullable BlockbenchAnimatorImpl effectAnimator()
      Returns the value of the effectAnimator record component.
      Specified by:
      effectAnimator in interface BlockbenchAnimation
      Returns:
      the value of the effectAnimator record component