Interfaces
GuiInterface
Methods
Method | Returns |
---|---|
setOnOpen(Consumer<InventoryOpenEvent> listener) | |
setOnClose(Consumer<InventoryCloseEvent> listener) | |
setOnClose(Consumer<InventoryClickEvent> listener) | |
setOnPageSwitch(Consumer<GuiPageSwitchModel> data) | |
setName(String name) | |
getName() | String |
getRawName() | String |
getSize() | Int |
getPages() | Int |
getCurrentPageIndex() | Int |
getCurrentPage() | Int |
setSlot(Int slot, GuiButtonInterface button) | |
setSlot(Int slot, ItemStack item) | |
setSlot(Int slot, Material item) | |
setSlot(Int page, Int slot, GuiButtonInterface button) | |
setSlot(Int page, Int slot, ItemStack item) | |
setSlot(Int page, Int slot, Material item) | |
updateSlot(Int slot, ItemStack item) | |
updateSlot(Int slot, Material item) | |
updateSlot(Int page, Int slot, ItemStack item) | |
updateSlot(Int page, Int slot, Material item) | |
getSlot(Int slot) | GuiButtonInterface |
getSlot(Int page, Int slot) | GuiButtonInterface |
clearSlot(Int slot) | |
clearSlot(Int page, Int slot) | |
clearAllSlots() | |
clearAllSlots(Int page) | |
getOwner() | JavaPlugin |
unlockButton(Int slot) | |
unlockButton(Int page, Int slot) | |
lockButton(Int slot) | |
lockButton(Int page, Int slot) | |
open(Player player) | |
open(Int page, Player player) | |
switchPage(Int pageIndex, Player player) | |
getMaxPages() | Int |
stickSlot(Int slot) | |
unStickSlot(Int slot) | |
close(Player player) | |
fillSlots(Set<Int> slots) | |
fillSlots(Set<Int> slots, ItemStack item) | |
fillSlots(Int page, Set<Int> slots) | |
fillSlots(Int page, Set<Int> slots, ItemStack item) | |
fillSlots(Int page, Set<Int> slots, GuiButtonInterface button) | |
addCloseButton() | |
addCloseButtonAllPages() | |
addCloseButton(Int page, ItemStack button) | |
fillBorder() | |
fillBorder(Int page, ItemStack item) | |
fillBorder(ItemStack item) | |
fillBorder(Material item) | |
setSelfInventoryAccess(Boolean value) | |
getSelfInventoryAccess() | Boolean |
allowClickTypes(ClickType... types) | |
blacklistClickTypes(ClickType... types) | |
getAllowedClickTypes() | HashSet<ClickType> |
getBlacklistedClickTypes() | HashSet<ClickType> |