Interface IEffect

    • Method Detail

      • cancel

        void cancel()
        Set the effect as done and run the cancel runnable.
      • doEffect

        void doEffect​(long time)
        Apply effect to the target according to the given time.
        Parameters:
        time - - Current time in ms. This value may be larger than the effect length.
      • getLength

        long getLength()
        Get effect length
        Returns:
        length (ms)
      • isDone

        boolean isDone()
        Returns:
        true if the effect as already reached its end.