Class TabItem
java.lang.Object
de.studiocode.invui.item.impl.BaseItem
de.studiocode.invui.item.impl.controlitem.ControlItem<TabGUI>
de.studiocode.invui.item.impl.controlitem.TabItem
- All Implemented Interfaces:
Item
Switches between tabs in a
TabGUI-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleClick(@NotNull org.bukkit.event.inventory.ClickType clickType, @NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.event.inventory.InventoryClickEvent event) A method called if the theItemStackassociated to thisItemhas been clicked by a player.Methods inherited from class de.studiocode.invui.item.impl.controlitem.ControlItem
getGui, getItemProvider, getItemProvider, setGuiMethods inherited from class de.studiocode.invui.item.impl.BaseItem
addWindow, getWindows, notifyWindows, removeWindow
-
Constructor Details
-
TabItem
public TabItem(int tab)
-
-
Method Details
-
handleClick
public void handleClick(@NotNull @NotNull org.bukkit.event.inventory.ClickType clickType, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Description copied from interface:ItemA method called if the theItemStackassociated to thisItemhas been clicked by a player.- Parameters:
clickType- TheClickTypethePlayerdid.player- ThePlayerwho clicked on theItemStackevent- TheInventoryClickEventassociated with this click.
-