Interface Slideshow

All Superinterfaces:
Composable, ComposableLike, Configurable<Slideshow>, Disable

public interface Slideshow extends Disable, Composable, Configurable<Slideshow>
A slideshow is a periodically changing component.
See more in Flare docs: Slideshow
  • Method Details

    • of

      @NotNull static @NotNull Slideshow of(List<ItemProvider> items, int period)
      Constructs a new slideshow out of a list of items
      Parameters:
      items - Items to be used
      period - Period between switching in ticks
      Returns:
      A new slideshow
    • of

      @NotNull static @NotNull Slideshow of(List<ItemProvider> items, int period, boolean disabled)
      Constructs a new slideshow out of a list of items
      Parameters:
      items - Items to be used
      period - Period between switching in ticks
      disabled - Whether the slideshow should be disabled
      Returns:
      A new slideshow
    • getSlides

      List<ItemProvider> getSlides()
      Returns all possible slides on this slideshow
      Returns:
      All possible slides on this slideshow
    • itemState

      Returns the reactive state of the currently selected item provider
      Returns:
      The reactive state of the currently selected item provider
    • getPeriod

      int getPeriod()
      Returns the period between the slides switching
      Returns:
      The period between the slides switching