public final class PersistentGui extends BaseGui
| Constructor and Description |
|---|
PersistentGui(int rows,
@NotNull String title)
Main constructor of the Persistent GUI
|
PersistentGui(@NotNull org.bukkit.plugin.Plugin plugin,
int rows,
@NotNull String title)
Deprecated.
No longer requires the plugin's instance to be passed use
PersistentGui(int, String) instead |
PersistentGui(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull String title)
Deprecated.
No longer requires the plugin's instance to be passed use
PersistentGui(String) instead |
PersistentGui(@NotNull String title)
Alternative constructor that does not require rows
|
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,org.bukkit.inventory.ItemStack> |
addItem(org.bukkit.inventory.ItemStack... items)
Adds
ItemStack to the inventory straight, not the GUI |
void |
open(@NotNull org.bukkit.entity.HumanEntity player)
Overridden
BaseGui.open(HumanEntity) to prevent |
addItem, addSlotAction, addSlotAction, close, getFiller, getGuiItem, getGuiItems, getInventory, getRows, isUpdating, setCloseGuiAction, setDefaultClickAction, setDefaultTopClickAction, setDragAction, setItem, setItem, setItem, setOpenGuiAction, setOutsideClickAction, setRows, setUpdating, update, updateItem, updateItem, updateItem, updateItem, updateTitlepublic PersistentGui(int rows,
@NotNull
@NotNull String title)
rows - The rows the GUI should havetitle - The GUI's titlepublic PersistentGui(@NotNull
@NotNull String title)
title - The GUI's title@Deprecated public PersistentGui(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, int rows, @NotNull @NotNull String title)
PersistentGui(int, String) insteadplugin - The plugin's instancerows - The rows the GUI should havetitle - The GUI's title@Deprecated public PersistentGui(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String title)
PersistentGui(String) insteadplugin - The plugin's instancetitle - The GUI's titlepublic Map<Integer,org.bukkit.inventory.ItemStack> addItem(@NotNull org.bukkit.inventory.ItemStack... items)
ItemStack to the inventory straight, not the GUIitems - Varargs with ItemStacksMap with the left overspublic void open(@NotNull
@NotNull org.bukkit.entity.HumanEntity player)
BaseGui.open(HumanEntity) to preventCopyright © 2020. All rights reserved.