Interface IGeckoAnimationBuilder

    • Method Detail

      • playOnce

        IGeckoAnimationBuilder playOnce​(String animationName)
        Add an animation that plays once, then advances to the next in the queue.
        Parameters:
        animationName - the animation name as defined in the Blockbench animation file
        Returns:
        this builder for chaining
      • loop

        IGeckoAnimationBuilder loop​(String animationName)
        Add an animation that loops indefinitely until replaced by another animation.
        Parameters:
        animationName - the animation name as defined in the Blockbench animation file
        Returns:
        this builder for chaining
      • playAndHold

        IGeckoAnimationBuilder playAndHold​(String animationName)
        Add an animation that plays once and holds on the last frame.
        Parameters:
        animationName - the animation name as defined in the Blockbench animation file
        Returns:
        this builder for chaining
      • addAnimation

        IGeckoAnimationBuilder addAnimation​(String animationName)
        Add an animation to the queue using the default loop behavior defined in the animation file.
        Parameters:
        animationName - the animation name as defined in the Blockbench animation file
        Returns:
        this builder for chaining
      • addRepeatingAnimation

        IGeckoAnimationBuilder addRepeatingAnimation​(String animationName,
                                                     int timesToRepeat)
        Add an animation to the queue that repeats a specified number of times.
        Parameters:
        animationName - the animation name as defined in the Blockbench animation file
        timesToRepeat - how many times to repeat the animation
        Returns:
        this builder for chaining
      • clearAnimations

        IGeckoAnimationBuilder clearAnimations()
        Clear all animations currently queued in this builder.
        Returns:
        this builder for chaining