Interface IFramePart


  • public interface IFramePart
    • Method Detail

      • getName

        String getName()
        Returns:
        The name of the animation part (e.g. HEAD, BODY, RIGHT_ARM, LEFT_ARM, RIGHT_LEG, LEFT_LEG, FULL_MODEL)
      • getPartId

        int getPartId()
        Returns:
        The ordinal ID of the animation part
      • setPart

        IFramePart setPart​(String name)
        Sets the animation part by name.
        Parameters:
        name - The part name (e.g. HEAD, BODY, RIGHT_ARM, LEFT_ARM, RIGHT_LEG, LEFT_LEG, FULL_MODEL)
        Returns:
        This frame part for chaining
      • setPart

        IFramePart setPart​(int partId)
        Sets the animation part by ordinal ID.
        Parameters:
        partId - The part ordinal ID
        Returns:
        This frame part for chaining
      • getRotations

        float[] getRotations()
        Returns:
        The rotation angles as a float array [x, y, z] in degrees
      • setRotations

        IFramePart setRotations​(float[] rotation)
        Sets the rotation angles.
        Parameters:
        rotation - A float array [x, y, z] in degrees
        Returns:
        This frame part for chaining
      • getPivots

        float[] getPivots()
        Returns:
        The pivot offsets as a float array [x, y, z]
      • setPivots

        IFramePart setPivots​(float[] pivot)
        Sets the pivot offsets.
        Parameters:
        pivot - A float array [x, y, z]
        Returns:
        This frame part for chaining
      • isCustomized

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

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

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

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

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

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