Class ScrollItem
java.lang.Object
xyz.xenondevs.invui.item.impl.AbstractItem
xyz.xenondevs.invui.item.impl.controlitem.ControlItem<ScrollGui<?>>
xyz.xenondevs.invui.item.impl.controlitem.ScrollItem
- All Implemented Interfaces:
Item
Scrolls in a
AbstractScrollGui-
Constructor Summary
ConstructorsConstructorDescriptionScrollItem(int scrollLeftClick) ScrollItem(HashMap<org.bukkit.event.inventory.ClickType, Integer> scroll) -
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 theItemStackassociated to thisItemhas been clicked by a player.Methods inherited from class xyz.xenondevs.invui.item.impl.controlitem.ControlItem
getGui, getItemProvider, getItemProvider, setGuiMethods inherited from class xyz.xenondevs.invui.item.impl.AbstractItem
addWindow, getWindows, notifyWindows, removeWindowMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface xyz.xenondevs.invui.item.Item
getItemProvider
-
Constructor Details
-
ScrollItem
public ScrollItem(int scrollLeftClick) -
ScrollItem
-
-
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 theItemStackassociated to thisItemhas been clicked by a player.- Parameters:
clickType- TheClickTypethePlayerperformed.player- ThePlayerwho clicked on theItemStack.event- TheInventoryClickEventassociated with this click.
-