Interface TimelineEntryProvider

All Known Subinterfaces:
FutureTimelineProvider, HistoryTimelineProvider

public interface TimelineEntryProvider
Provides entries for the timeline of the multi-perspective-preview.
Since:
5.1.107
  • Method Summary

    Modifier and Type
    Method
    Description
    getEntries(@NotNull IDProvider element, @NotNull Language language)
    Returns a list of entries that should be shown in the related timeline.
    long
    Returns the time range that should be displayed in the timeline.
  • Method Details

    • getRange

      long getRange()
      Returns the time range that should be displayed in the timeline. Might be 0 to show all entries returned by getEntries(IDProvider, Language).
      Returns:
      the time range for the timeline
      Since:
      5.1.107
    • getEntries

      @NotNull @NotNull Collection<TimelineEntry> getEntries(@NotNull @NotNull IDProvider element, @NotNull @NotNull Language language)
      Returns a list of entries that should be shown in the related timeline. The time range might be fixed by getRange().
      Parameters:
      element - the element to calculate the timeline entries for
      language - the language to calculate the timeline entries for
      Returns:
      the timeline entries
      Since:
      5.1.107
      See Also: