GUI
Constructors
public GUI(JavaPlugin plugin, int size, String title)
public GUI(JavaPlugin plugin, int size, String title, Player.. player)
Title
Set title
public void setTitle(String title)
Get title
public String getTitle()
Item
Set item
public void setItem(int slot, ItemStack item, ClickAction action)
Add item on free slot
public void addItem(ItemStack item, ClickAction action)
Set Close Action
public void setCloseAction(CloseAction closeAction)
Set Border
public void setBorder(ItemStack item, BorderStyle style)
public enum BorderStyle {
FULL,
VERTICAL,
TOP_ONLY,
BOTTOM_ONLY,
LEFT_ONLY,
RIGHT_ONLY,
HORIZONTAL;
}
Set Background
Places on all free item slots
public void setBackground(ItemStack item)
Player
Open GUI for player
public void addPlayer(Player player)
Close GUI for player
public void removePlayer(Player player)
Returns all players using the GUI
public ArrayList<Player> getPlayers()
Get Size
Return GUI size
public int getSize()
Last updated