Interface IFrame


  • public interface IFrame
    • Method Detail

      • getParts

        IFramePart[] getParts()
        Returns:
        An array of all frame parts in this frame
      • addPart

        IFrame addPart​(IFramePart partConfig)
        Adds a frame part to this frame.
        Parameters:
        partConfig - The frame part to add
        Returns:
        This frame for chaining
      • removePart

        IFrame removePart​(String partName)
        Removes a frame part by its name.
        Parameters:
        partName - The animation part name (e.g. HEAD, BODY, RIGHT_ARM, LEFT_ARM, RIGHT_LEG, LEFT_LEG, FULL_MODEL)
        Returns:
        This frame for chaining
      • removePart

        IFrame removePart​(int partId)
        Removes a frame part by its ordinal ID.
        Parameters:
        partId - The animation part ordinal ID
        Returns:
        This frame for chaining
      • clearParts

        IFrame clearParts()
        Removes all frame parts from this frame.
        Returns:
        This frame for chaining
      • getDuration

        int getDuration()
        Returns:
        The duration of this frame in ticks
      • setDuration

        IFrame setDuration​(int duration)
        Sets the duration of this frame.
        Parameters:
        duration - The duration in ticks
        Returns:
        This frame for chaining
      • isCustomized

        boolean isCustomized()
        Returns:
        Whether this frame has custom speed and smooth settings that override the parent animation
      • setCustomized

        IFrame setCustomized​(boolean customized)
        Sets whether this frame uses custom speed and smooth settings.
        Parameters:
        customized - True to use frame-level settings instead of the parent animation's
        Returns:
        This frame for chaining
      • getSpeed

        float getSpeed()
        Returns:
        The interpolation speed of this frame
      • setSpeed

        IFrame setSpeed​(float speed)
        Sets the interpolation speed of this frame.
        Parameters:
        speed - The speed value
        Returns:
        This frame for chaining
      • smoothType

        byte smoothType()
        Returns:
        The smooth interpolation type: 0 = Interpolated, 1 = Linear, 2 = None
      • setSmooth

        IFrame setSmooth​(byte smooth)
        Sets the smooth interpolation type.
        Parameters:
        smooth - The smooth type: 0 = Interpolated, 1 = Linear, 2 = None
        Returns:
        This frame for chaining