Package com.guflimc.brick.gui.spigot.api
Interface ISpigotMenu
- All Known Implementing Classes:
SpigotMenu
public interface ISpigotMenu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClickListener
(Consumer<org.bukkit.event.inventory.InventoryClickEvent> listener) void
addCloseListener
(Consumer<org.bukkit.entity.HumanEntity> listener) void
addOpenListener
(Consumer<org.bukkit.entity.HumanEntity> listener) org.bukkit.inventory.ItemStack[]
items()
void
open
(org.bukkit.entity.HumanEntity entity) void
removeItem
(int index) void
setItem
(int index, org.bukkit.inventory.ItemStack itemStack) void
setItem
(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.event.inventory.InventoryClickEvent> onClick) void
setItem
(int index, org.bukkit.inventory.ItemStack itemStack, Function<org.bukkit.event.inventory.InventoryClickEvent, Boolean> onClick) int
size()
-
Method Details
-
removeItem
void removeItem(int index) -
setItem
void setItem(int index, org.bukkit.inventory.ItemStack itemStack) -
setItem
void setItem(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.event.inventory.InventoryClickEvent> onClick) -
setItem
-
items
org.bukkit.inventory.ItemStack[] items() -
size
int size() -
open
void open(org.bukkit.entity.HumanEntity entity) -
addOpenListener
-
addCloseListener
-
addClickListener
-