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.
Used to define a contract for per-player
GuiItem creation in UIs.-
Method Summary
Modifier and TypeMethodDescription@NotNull com.github.stefvanschie.inventoryframework.gui.GuiItemgetDisplay(@NotNull org.bukkit.entity.Player uiHolder, @NotNull com.github.stefvanschie.inventoryframework.gui.type.util.Gui gui) Create a newGuiItemfor 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 newGuiItemfor usage in UIs.Requires a
Playerfor server-side translations of names and item lore and other data.- Parameters:
uiHolder- ThePlayerthat the item is show togui- TheGuiinstance the item is used in- Returns:
- The
GuiItemto display to the player
-