Class PageItem
java.lang.Object
xyz.xenondevs.invui.item.impl.AbstractItem
xyz.xenondevs.invui.item.impl.controlitem.ControlItem<PagedGui<?>>
xyz.xenondevs.invui.item.impl.controlitem.PageItem
- All Implemented Interfaces:
Item
Switches between pages in a
AbstractPagedGui
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleClick
(@NotNull org.bukkit.event.inventory.ClickType clickType, @NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.event.inventory.InventoryClickEvent event) A method called if theItemStack
associated to thisItem
has been clicked by a player.Methods inherited from class xyz.xenondevs.invui.item.impl.controlitem.ControlItem
getGui, getItemProvider, getItemProvider, setGui
Methods inherited from class xyz.xenondevs.invui.item.impl.AbstractItem
addWindow, getWindows, notifyWindows, removeWindow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.xenondevs.invui.item.Item
getItemProvider
-
Constructor Details
-
PageItem
public PageItem(boolean forward)
-
-
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:Item
A method called if theItemStack
associated to thisItem
has been clicked by a player.- Parameters:
clickType
- TheClickType
thePlayer
performed.player
- ThePlayer
who clicked on theItemStack
.event
- TheInventoryClickEvent
associated with this click.
-