Interface Displayable

All Known Implementing Classes:
Protection
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 interface Displayable
Used to define a contract for per-player GuiItem creation in UIs.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull com.github.stefvanschie.inventoryframework.gui.GuiItem
    getDisplay(@NotNull org.bukkit.entity.Player uiHolder, @NotNull com.github.stefvanschie.inventoryframework.gui.type.util.Gui gui)
    Create a new GuiItem for usage in UIs.
  • Method Details

    • getDisplay

      @NotNull @NotNull com.github.stefvanschie.inventoryframework.gui.GuiItem getDisplay(@NotNull @NotNull org.bukkit.entity.Player uiHolder, @NotNull @NotNull com.github.stefvanschie.inventoryframework.gui.type.util.Gui gui)
      Create a new GuiItem for usage in UIs.

      Requires a Player for server-side translations of names and item lore and other data.

      Parameters:
      uiHolder - The Player that the item is show to
      gui - The Gui instance the item is used in
      Returns:
      The GuiItem to display to the player