Package de.studiocode.invui.item
Interface Item
- All Known Implementing Classes:
AsyncItem,AutoCycleItem,AutoUpdateItem,BaseItem,CommandItem,ControlItem,CycleItem,PageItem,ScrollItem,SimpleItem,SuppliedItem,TabItem
public interface Item
-
Method Summary
Modifier and TypeMethodDescriptionvoidGets theItemProvider.voidhandleClick(@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.voidCalls theWindow.handleItemProviderUpdate(Item)method on everyWindowin the set, notifying them that theItemProviderhas been updated and theItemStackinside theWindow'sInventoryshould be replaced.voidremoveWindow(Window window)
-
Method Details
-
getItemProvider
ItemProvider getItemProvider()- Returns:
- The
ItemProvider
-
addWindow
-
removeWindow
-
getWindows
-
notifyWindows
void notifyWindows()Calls theWindow.handleItemProviderUpdate(Item)method on everyWindowin the set, notifying them that theItemProviderhas been updated and theItemStackinside theWindow'sInventoryshould be replaced. -
handleClick
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) A method called if the theItemStackassociated to thisItemhas been clicked by a player.- Parameters:
clickType- TheClickTypethePlayerdid.player- ThePlayerwho clicked on theItemStackevent- TheInventoryClickEventassociated with this click.
-