Interface Canvas.PopulatorContext.Populator<T>

Type Parameters:
T - the type of the element
Enclosing class:
Canvas.PopulatorContext<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Canvas.PopulatorContext.Populator<T>
Populates one element and provides the player with the button.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    populate(T element, @NotNull Canvas canvas, @NotNull Button button)
    Populates the element.
  • Method Details

    • populate

      void populate(@NotNull T element, @NotNull @NotNull Canvas canvas, @NotNull @NotNull Button button)
      Populates the element.
      Parameters:
      element - the element to populate
      canvas - the canvas
      button - the button associated with the element on the canvas