Skip navigation links
A B C D E F G H I L N O P Q R S T U V W 

A

accept(T) - Method in class io.github.portlek.smartinventory.handle.BasicHandle
 
accept(T) - Method in interface io.github.portlek.smartinventory.Icon
accepts the upcoming event for all of the handles.
accept(T) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
accept(T) - Method in interface io.github.portlek.smartinventory.Page
accepts the upcoming event.
accept(T) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
action() - Method in interface io.github.portlek.smartinventory.event.abs.ClickEvent
 
action() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
add(Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
adds an item to the first empty slot of the inventory.
added() - Method in interface io.github.portlek.smartinventory.event.abs.DragEvent
 
added() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
addToIterator(SlotIterator) - Method in interface io.github.portlek.smartinventory.Pagination
adds all the current page icons to the given iterator.
all() - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
all() - Method in interface io.github.portlek.smartinventory.InventoryContents
returns a 2D array of Icon containing all the items of the inventory.
allowOverride(boolean) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
allowOverride(boolean) - Method in interface io.github.portlek.smartinventory.SlotIterator
sets the value of the allow override option.
applyRect(int, int, int, int, ObjIntConsumer<Integer>) - Method in interface io.github.portlek.smartinventory.InventoryContents
applie the consumer on a rectangle inside the inventory using the given positions.
applyRect(int, int, int, int, Consumer<Icon>) - Method in interface io.github.portlek.smartinventory.InventoryContents
applies the consumer on a rectangle inside the inventory using the given positions.
async() - Method in interface io.github.portlek.smartinventory.Page
obtains status of the task in terms of async.
async(boolean) - Method in interface io.github.portlek.smartinventory.Page
sets the task's async status.
async() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
async(boolean) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
attach(char, T) - Method in class io.github.portlek.smartinventory.util.Pattern
attaches an object to a character in this pattern instance.

B

BasicHandle<T extends SmartEvent> - Class in io.github.portlek.smartinventory.handle
an implementation for Handle.
BasicHandle(Class<T>, Consumer<T>, List<Predicate<T>>) - Constructor for class io.github.portlek.smartinventory.handle.BasicHandle
ctor.
BasicIcon - Class in io.github.portlek.smartinventory.icon
an implementation for Icon.
BasicIcon(ItemStack) - Constructor for class io.github.portlek.smartinventory.icon.BasicIcon
ctor.
BasicInventoryContents - Class in io.github.portlek.smartinventory.content
an implementation for InventoryContents.
BasicInventoryContents(Page, Player, Icon[][]) - Constructor for class io.github.portlek.smartinventory.content.BasicInventoryContents
ctpr.
BasicInventoryContents(Page, Player) - Constructor for class io.github.portlek.smartinventory.content.BasicInventoryContents
ctor.
BasicPage - Class in io.github.portlek.smartinventory.page
an implementation for Page.
BasicPage(SmartInventory, InventoryProvider) - Constructor for class io.github.portlek.smartinventory.page.BasicPage
ctor.
BasicPage(SmartInventory) - Constructor for class io.github.portlek.smartinventory.page.BasicPage
ctor.
BasicPagination - Class in io.github.portlek.smartinventory.content
an implementation for Pagination.
BasicPagination() - Constructor for class io.github.portlek.smartinventory.content.BasicPagination
 
BasicSlotIterator - Class in io.github.portlek.smartinventory.content
an implementation for SlotIterator.
BasicSlotIterator(InventoryContents, SlotIterator.Type) - Constructor for class io.github.portlek.smartinventory.content.BasicSlotIterator
ctor.
BasicSlotIterator(InventoryContents, SlotIterator.Type, int, int) - Constructor for class io.github.portlek.smartinventory.content.BasicSlotIterator
ctor.
BasicSmartInventory - Class in io.github.portlek.smartinventory.manager
an implementation for SmartInventory.
BasicSmartInventory(Plugin) - Constructor for class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
BasicSource<T> - Class in io.github.portlek.observer.source
an implementation for Source.
BasicSource() - Constructor for class io.github.portlek.observer.source.BasicSource
 
blacklist(int) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
blacklist(int, int) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
blacklist(SlotPos) - Method in interface io.github.portlek.smartinventory.SlotIterator
blacklists the given slot position.
blacklist(int) - Method in interface io.github.portlek.smartinventory.SlotIterator
blacklists the given slot index.
blacklist(int, int) - Method in interface io.github.portlek.smartinventory.SlotIterator
blacklists the given slot position.
blacklistPattern(Pattern<Boolean>, int, int) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
blacklistPattern(Pattern<Boolean>) - Method in interface io.github.portlek.smartinventory.SlotIterator
this method has the inverse effect of SlotIterator.withPattern(Pattern), where the other method would only allow the iterator to go, this method prohibits this slots to iterate over.
blacklistPattern(Pattern<Boolean>, int, int) - Method in interface io.github.portlek.smartinventory.SlotIterator
This method has the inverse effect of SlotIterator.withPattern(Pattern, int, int), where the other method would only allow the iterator to go, this method prohibits this slots to iterate over.
BottomClickEvent - Interface in io.github.portlek.smartinventory.event.abs
 
build(SmartInventory, InventoryProvider) - Static method in interface io.github.portlek.smartinventory.Page
creates a simple page instance from the given parameters.
build(SmartInventory) - Static method in interface io.github.portlek.smartinventory.Page
creates a simple page instance from the given inventory.

C

calculateItem(InventoryContents) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
calculateItem(InventoryContents) - Method in interface io.github.portlek.smartinventory.Icon
calculates and returns the item of the icon.
cancel() - Method in interface io.github.portlek.smartinventory.event.abs.SmartEvent
 
cancel() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
cancel() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
cancel() - Method in class io.github.portlek.smartinventory.event.PgBottomClickEvent
 
cancel() - Method in class io.github.portlek.smartinventory.event.PgClickEvent
 
cancel() - Method in class io.github.portlek.smartinventory.event.PgOpenEvent
 
cancel() - Method in class io.github.portlek.smartinventory.event.PgOutsideClickEvent
 
cancel(ItemStack) - Static method in interface io.github.portlek.smartinventory.Icon
creates a simple icon from the given ItemStack with SmartEvent.cancel() interaction.
canClose(CloseEvent) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
canClose(Predicate<CloseEvent>) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
canClose(boolean) - Method in interface io.github.portlek.smartinventory.Page
sets the can close to the given boolean.
canClose(CloseEvent) - Method in interface io.github.portlek.smartinventory.Page
checks the can close with the given event.
canClose(Predicate<CloseEvent>) - Method in interface io.github.portlek.smartinventory.Page
sets the can close predicate of the page.
canSee(Predicate<InventoryContents>) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
canSee(Predicate<InventoryContents>) - Method in interface io.github.portlek.smartinventory.Icon
sets the canSee value of the icon to the given predicate.
canUse(Predicate<InventoryContents>) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
canUse(Predicate<InventoryContents>) - Method in interface io.github.portlek.smartinventory.Icon
sets the canUse value of the icon to the given predicate.
checkBounds(int, int) - Method in interface io.github.portlek.smartinventory.Page
checks the bounds.
ChestInventoryOpener - Class in io.github.portlek.smartinventory.opener
an InventoryType.CHEST implementation for InventoryOpener.
ChestInventoryOpener() - Constructor for class io.github.portlek.smartinventory.opener.ChestInventoryOpener
 
clearContents() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
clearContents() - Method in interface io.github.portlek.smartinventory.SmartInventory
clears all contents.
clearContentsByInventory() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
clearContentsByInventory() - Method in interface io.github.portlek.smartinventory.SmartInventory
clears all contents by inventory
clearLastPages() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
clearLastPages(Predicate<Player>) - Method in interface io.github.portlek.smartinventory.SmartInventory
clears all the latest opened pages if the predicate returns true.
clearLastPages() - Method in interface io.github.portlek.smartinventory.SmartInventory
clears all the latest opened pages.
clearPages() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
clearPages(Predicate<InventoryContents>) - Method in interface io.github.portlek.smartinventory.SmartInventory
clears Pages if the given predicate returns true.
clearPages() - Method in interface io.github.portlek.smartinventory.SmartInventory
clears all pages.
clearTask() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
clearTask() - Method in interface io.github.portlek.smartinventory.SmartInventory
clears all tasks.
click() - Method in interface io.github.portlek.smartinventory.event.abs.ClickEvent
 
click() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
click(ItemStack, Consumer<ClickEvent>, Predicate<ClickEvent>...) - Static method in interface io.github.portlek.smartinventory.Icon
creates a simple icon from the given ItemStack with a ClickEvent.
ClickEvent - Interface in io.github.portlek.smartinventory.event.abs
 
close() - Method in interface io.github.portlek.smartinventory.event.abs.SmartEvent
 
close() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
close() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
close() - Method in class io.github.portlek.smartinventory.event.PgBottomClickEvent
 
close() - Method in class io.github.portlek.smartinventory.event.PgClickEvent
 
close() - Method in class io.github.portlek.smartinventory.event.PgOpenEvent
 
close() - Method in class io.github.portlek.smartinventory.event.PgOutsideClickEvent
 
close(Player) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
close(Player) - Method in interface io.github.portlek.smartinventory.Page
closes the player's page.
CloseEvent - Interface in io.github.portlek.smartinventory.event.abs
 
column() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
column(int) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
column() - Method in interface io.github.portlek.smartinventory.event.abs.ClickEvent
 
column() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
column() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
column(int) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
column() - Method in interface io.github.portlek.smartinventory.Page
obtains column of the page.
column(int) - Method in interface io.github.portlek.smartinventory.Page
set the column of the page.
column() - Method in interface io.github.portlek.smartinventory.SlotIterator
gets the current column of the iterator.
column(int) - Method in interface io.github.portlek.smartinventory.SlotIterator
sets the current column of the iterator.
contents() - Method in interface io.github.portlek.smartinventory.event.abs.SmartEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgBottomClickEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgClickEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgCloseEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgInitEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgOpenEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgOutsideClickEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgTickEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PgUpdateEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PlgnDisableEvent
 
contents() - Method in class io.github.portlek.smartinventory.event.PlyrQuitEvent
 
current() - Method in interface io.github.portlek.smartinventory.event.abs.ClickEvent
 
current() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
cursor() - Method in interface io.github.portlek.smartinventory.event.abs.ClickEvent
 
cursor() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 

D

DEFAULT_OPENERS - Static variable in interface io.github.portlek.smartinventory.SmartInventory
default inventory openers.
DisableEvent - Interface in io.github.portlek.smartinventory.event.abs
 
doesAllowOverride() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
doesAllowOverride() - Method in interface io.github.portlek.smartinventory.SlotIterator
gets the value of the allow override option.
drag() - Method in interface io.github.portlek.smartinventory.event.abs.DragEvent
 
drag() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
drag(ItemStack, Consumer<DragEvent>, Predicate<DragEvent>...) - Static method in interface io.github.portlek.smartinventory.Icon
creates a simple icon from the given ItemStack with a DragEvent.
DragEvent - Interface in io.github.portlek.smartinventory.event.abs
 

E

EMPTY - Static variable in interface io.github.portlek.smartinventory.Icon
an empty Icon instance.
EMPTY - Static variable in interface io.github.portlek.smartinventory.InventoryProvider
an empty inventory provider.
ended() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
ended() - Method in interface io.github.portlek.smartinventory.SlotIterator
checks if this iterator has been ended.
endPosition(int, int) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
endPosition(SlotPos) - Method in interface io.github.portlek.smartinventory.SlotIterator
sets the slot where the iterator should end.
endPosition(int, int) - Method in interface io.github.portlek.smartinventory.SlotIterator
sets the slot where the iterator should end.
equals(Object) - Method in class io.github.portlek.smartinventory.util.SlotPos
 

F

fallback(ItemStack) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
fallback(ItemStack) - Method in interface io.github.portlek.smartinventory.Icon
sets the fallback item of the icon to the given item.
fill(Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given item.
fill(Inventory, InventoryContents) - Method in interface io.github.portlek.smartinventory.InventoryOpener
fills the given contents to the given inventory.
fillBorders(Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory borders with the given item.
fillColumn(int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the given inventory column with the given item.
fillEmpties(Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the empty slots of the inventory with the given item.
fillPattern(Pattern<Icon>) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillPattern(Pattern<Icon>, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillPattern(Pattern<Icon>, int, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillPattern(Pattern<Icon>, SlotPos) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillPatternRepeating(Pattern<Icon>) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillPatternRepeating(Pattern<Icon>, int, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillPatternRepeating(Pattern<Icon>, int, int, int, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillPatternRepeating(Pattern<Icon>, SlotPos, SlotPos) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the inventory with the given Pattern.
fillRect(int, int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills a rectangle inside the inventory using the given positions.
fillRect(int, int, int, int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
same as InventoryContents.fillRect(int, int, Icon), but with SlotPos instead of the indexes.
fillRect(SlotPos, SlotPos, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
same as InventoryContents.fillRect(int, int, Icon), but with rows and columns instead of the indexes.
fillRow(int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
fills the given inventory row with the given item.
fillSquare(int, int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
completely fills the provided square with the given Icon.
fillSquare(int, int, int, int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
completely fills the provided square with the given Icon.
fillSquare(SlotPos, SlotPos, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
completely fills the provided square with the given Icon.
findAllKeys(char) - Method in class io.github.portlek.smartinventory.util.Pattern
searches through this patterns lines to find all occurrences of this key.
findItem(ItemStack) - Method in interface io.github.portlek.smartinventory.InventoryContents
looks for the given item and compares them using ItemStack.isSimilar(ItemStack), ignoring the amount.
findItem(Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
looks for the given icon and compares them using ItemStack.isSimilar(ItemStack), ignoring the amount.
findKey(char) - Method in class io.github.portlek.smartinventory.util.Pattern
searches through this patterns lines to find the first top-left occurrence of this key.
findOpener(InventoryType) - Method in interface io.github.portlek.smartinventory.SmartInventory
finds a InventoryOpener from the given InventoryType.
first() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
first() - Method in interface io.github.portlek.smartinventory.Pagination
Sets the current page to the first page.
firstEmpty() - Method in interface io.github.portlek.smartinventory.InventoryContents
returns the position of the first empty slot in the inventory, or Optional.empty() if there is no free slot.
from(Class<T>, Consumer<T>, List<Predicate<T>>) - Static method in interface io.github.portlek.smartinventory.Handle
creates a simple handler.
from(Class<T>, Consumer<T>, Predicate<T>...) - Static method in interface io.github.portlek.smartinventory.Handle
creates a simple handler.
from(ItemStack) - Static method in interface io.github.portlek.smartinventory.Icon
creates a simple icon from the given ItemStack.

G

get() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
get(int) - Method in interface io.github.portlek.smartinventory.InventoryContents
returns the item in the inventory at the given slot index, or Optional.empty() if the slot is empty or if the index is out of bounds.
get(int, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
same as InventoryContents.get(int), but with a row and a column instead of the index.
get(SlotPos) - Method in interface io.github.portlek.smartinventory.InventoryContents
same as InventoryContents.get(int), but with a SlotPos instead of the index.
get() - Method in interface io.github.portlek.smartinventory.SlotIterator
gets the icon at the current position in the inventory.
getBottomInventory() - Method in interface io.github.portlek.smartinventory.InventoryContents
gets player's bottom of the inventory.
getColumn() - Method in class io.github.portlek.smartinventory.util.SlotPos
obtains the column row of this
getColumnCount() - Method in class io.github.portlek.smartinventory.util.Pattern
this method counts the amount of rows this pattern has based on the length of the lines.
getContents() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getContents(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getContents() - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains all InventoryContents.
getContents(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains InventoryContents of the given player.
getContentsByInventory() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getContentsByInventory(Inventory) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getContentsByInventory() - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains a map that contains Inventory and InventoryContents as key and value.
getContentsByInventory(Inventory) - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains InventoryContents from the given inventory.
getDefaultValue() - Method in class io.github.portlek.smartinventory.util.Pattern
returns the default value set via Pattern.setDefault(Object)
getItem() - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
getItem() - Method in interface io.github.portlek.smartinventory.Icon
obtains the icon's ItemStack.
getLastPage(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getLastPage(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains the latest opened page of the given player.
getLastPages() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getLastPages() - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains the latest opened pages.
getObject(int) - Method in class io.github.portlek.smartinventory.util.Pattern
returns the object from the n-th key in this pattern.
getObject(SlotPos) - Method in class io.github.portlek.smartinventory.util.Pattern
this method is simple a shorthand to the method call getObject(slot.getRow(), slot.getColumn()), so all the special cases described in that method will apply to this one.
getObject(int, int) - Method in class io.github.portlek.smartinventory.util.Pattern
retrieves the object associated with the key found at the row and column in this pattern, if there is no object attached to that character, the default object set via Pattern.setDefault(Object) is used.
getOpenedPlayers(Page) - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains the players that see the given page.
getOpeners() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getOpeners() - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains inventory openers.
getPage() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
getPage(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getPage() - Method in interface io.github.portlek.smartinventory.Pagination
gets the current page.
getPage(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains the page that seeing by the given player.
getPageIcons() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
getPageIcons() - Method in interface io.github.portlek.smartinventory.Pagination
gets the icons of the current page.
getPages() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getPages() - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains all opened Page.
getPlugin() - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getPlugin() - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains the plugin.
getProperty(String) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
getProperty(String) - Method in interface io.github.portlek.smartinventory.InventoryContents
gets the value of the property with the given name.
getPropertyOrDefault(String, T) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
getPropertyOrDefault(String, T) - Method in interface io.github.portlek.smartinventory.InventoryContents
gets the value of the property with the given name, or a default value if the property isn't set.
getRow() - Method in class io.github.portlek.smartinventory.util.SlotPos
obtains the row row of this
getRowCount() - Method in class io.github.portlek.smartinventory.util.Pattern
this method counts the amount of rows this pattern has based on the amount of lines provided at creation.
getTask(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
getTask(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
obtains the given player's task.
getTopInventory() - Method in interface io.github.portlek.smartinventory.InventoryContents
gets player's top of the inventory.

H

Handle<T extends SmartEvent> - Interface in io.github.portlek.smartinventory
a class that handles and runs the given consumer after checking the requirements.
handle(Handle<T>) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
handle(Class<T>, Consumer<T>, List<Predicate<T>>) - Method in interface io.github.portlek.smartinventory.Icon
add the given event and requirements to the icon's handles.
handle(Handle<T>) - Method in interface io.github.portlek.smartinventory.Icon
adds the given handle into the icon's handle list.
handle(Handle<T>) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
handle(Class<T>, Consumer<T>, List<Predicate<T>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer.
handle(Handle<T>) - Method in interface io.github.portlek.smartinventory.Page
adds the given handle.
handles(Collection<Handle<? extends IconEvent>>) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
handles(Collection<Handle<? extends IconEvent>>) - Method in interface io.github.portlek.smartinventory.Icon
adds all the given handles into the icon's handle list.
hashCode() - Method in class io.github.portlek.smartinventory.util.SlotPos
 

I

IcClickEvent - Class in io.github.portlek.smartinventory.event
 
IcClickEvent(Plugin, InventoryClickEvent, InventoryContents, Icon) - Constructor for class io.github.portlek.smartinventory.event.IcClickEvent
 
IcDragEvent - Class in io.github.portlek.smartinventory.event
 
IcDragEvent(Plugin, InventoryDragEvent, InventoryContents, Icon) - Constructor for class io.github.portlek.smartinventory.event.IcDragEvent
 
icon() - Method in interface io.github.portlek.smartinventory.event.abs.IconEvent
 
icon() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
icon() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
Icon - Interface in io.github.portlek.smartinventory
a class that holds the ItemStack to put the given inventory.
IconEvent - Interface in io.github.portlek.smartinventory.event.abs
 
id(String) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
id() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
id(String) - Method in interface io.github.portlek.smartinventory.Page
sets the id of the page.
id() - Method in interface io.github.portlek.smartinventory.Page
obtains id of the page.
init(InventoryContents) - Method in interface io.github.portlek.smartinventory.InventoryProvider
runs when the page has just opened.
init() - Method in interface io.github.portlek.smartinventory.SmartInventory
initiates the manager.
InitEvent - Interface in io.github.portlek.smartinventory.event.abs
 
inventory() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
inventory() - Method in interface io.github.portlek.smartinventory.Page
obtains the page's inventory manager.
InventoryClickListener - Class in io.github.portlek.smartinventory.listener
 
InventoryClickListener(SmartInventory) - Constructor for class io.github.portlek.smartinventory.listener.InventoryClickListener
 
InventoryCloseListener - Class in io.github.portlek.smartinventory.listener
 
InventoryCloseListener(SmartInventory) - Constructor for class io.github.portlek.smartinventory.listener.InventoryCloseListener
 
InventoryContents - Interface in io.github.portlek.smartinventory
represents the content of an inventory.
InventoryDragListener - Class in io.github.portlek.smartinventory.listener
 
InventoryDragListener(SmartInventory) - Constructor for class io.github.portlek.smartinventory.listener.InventoryDragListener
 
InventoryOpener - Interface in io.github.portlek.smartinventory
a class that opens Inventorys from the given InventoryTypes.
InventoryOpenListener - Class in io.github.portlek.smartinventory.listener
 
InventoryOpenListener(SmartInventory) - Constructor for class io.github.portlek.smartinventory.listener.InventoryOpenListener
 
InventoryProvider - Interface in io.github.portlek.smartinventory
a class that allows to manage player's inventory contents.
io.github.portlek.observer - package io.github.portlek.observer
the package that contains observer pattern's interfaces.
io.github.portlek.observer.source - package io.github.portlek.observer.source
the package that contains Source implementations.
io.github.portlek.smartinventory - package io.github.portlek.smartinventory
the package that contains common interfaces.
io.github.portlek.smartinventory.content - package io.github.portlek.smartinventory.content
the package that contains Page's contents.
io.github.portlek.smartinventory.event - package io.github.portlek.smartinventory.event
the package that contains event classes.
io.github.portlek.smartinventory.event.abs - package io.github.portlek.smartinventory.event.abs
the package that contains interfaces of all the events.
io.github.portlek.smartinventory.handle - package io.github.portlek.smartinventory.handle
the package that contains Handle implementations.
io.github.portlek.smartinventory.icon - package io.github.portlek.smartinventory.icon
the package that contains Icon implementations.
io.github.portlek.smartinventory.listener - package io.github.portlek.smartinventory.listener
the package that contains Listener classes.
io.github.portlek.smartinventory.manager - package io.github.portlek.smartinventory.manager
the package that contains SmartInventory implementations.
io.github.portlek.smartinventory.opener - package io.github.portlek.smartinventory.opener
the package that contains InventoryOpener implementations.
io.github.portlek.smartinventory.page - package io.github.portlek.smartinventory.page
the package that contains Page implementations.
io.github.portlek.smartinventory.util - package io.github.portlek.smartinventory.util
the package that contains utility classes.
isEditable(SlotPos) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
isEditable(SlotPos) - Method in interface io.github.portlek.smartinventory.InventoryContents
returns if a given slot is editable or not.
isFirst() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
isFirst() - Method in interface io.github.portlek.smartinventory.Pagination
checks if the current page is the first page.
isLast() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
isLast() - Method in interface io.github.portlek.smartinventory.Pagination
checks if the current page is the last page.
isWrapAround() - Method in class io.github.portlek.smartinventory.util.Pattern
a simple getter for the value provided at the Patterns creation, if this pattern supports wrapAround.
item(ItemStack) - Method in class io.github.portlek.smartinventory.icon.BasicIcon
 
item(ItemStack) - Method in interface io.github.portlek.smartinventory.Icon
sets the item of the icon to the given item.
iterator(String) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
iterator(String) - Method in interface io.github.portlek.smartinventory.InventoryContents
gets a previously registered iterator named with the given id.

L

last() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
last() - Method in interface io.github.portlek.smartinventory.Pagination
sets the current page to the last page.
LISTENERS - Static variable in interface io.github.portlek.smartinventory.SmartInventory
all listener to register.

N

newcursor() - Method in interface io.github.portlek.smartinventory.event.abs.DragEvent
 
newcursor() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
newIterator(String, SlotIterator.Type, int, int) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
newIterator(SlotIterator.Type, int, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
creates and returns an iterator.
newIterator(String, SlotIterator.Type, SlotPos) - Method in interface io.github.portlek.smartinventory.InventoryContents
newIterator(SlotIterator.Type, SlotPos) - Method in interface io.github.portlek.smartinventory.InventoryContents
newIterator(String, SlotIterator.Type, int, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
creates and registers an iterator using a given id.
next() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
next() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
next() - Method in interface io.github.portlek.smartinventory.Pagination
sets the current page to the next page, if the current page is already the last page, this do nothing.
next() - Method in interface io.github.portlek.smartinventory.SlotIterator
moves the cursor to the next position inside the inventory.
notifyTargets(T) - Method in class io.github.portlek.observer.source.BasicSource
 
notifyTargets(T) - Method in interface io.github.portlek.observer.Source
notifies Target.update(Object) method all of the subscribes.
notifyUpdate() - Method in interface io.github.portlek.smartinventory.InventoryContents
notifyUpdate(InventoryContents) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
notifyUpdate(InventoryContents) - Method in interface io.github.portlek.smartinventory.Page
runs the Page.provider()'s InventoryProvider.update(InventoryContents) method with the given contents.
notifyUpdate(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
runs InventoryProvider.update(InventoryContents) method of the player's page.
notifyUpdateForAll() - Method in interface io.github.portlek.smartinventory.InventoryContents
runs Page.notifyUpdateForAll() method of this.
notifyUpdateForAll() - Method in interface io.github.portlek.smartinventory.Page
runs the InventoryProvider.update(InventoryContents) methods for all players who opened this.
notifyUpdateForAll(Class<T>) - Method in interface io.github.portlek.smartinventory.SmartInventory
runs InventoryProvider.update(InventoryContents) method of the given provider's class.
notifyUpdateForAllById() - Method in interface io.github.portlek.smartinventory.InventoryContents
runs Page.notifyUpdateForAllById() method of this.
notifyUpdateForAllById() - Method in interface io.github.portlek.smartinventory.Page
runs the InventoryProvider.update(InventoryContents) methods for all players who opened this.
notifyUpdateForAllById(String) - Method in interface io.github.portlek.smartinventory.SmartInventory
runs InventoryProvider.update(InventoryContents) method of the page called the given id.

O

of(int, int) - Static method in class io.github.portlek.smartinventory.util.SlotPos
creats a simple slot position instance.
onInventoryClick(InventoryClickEvent) - Method in class io.github.portlek.smartinventory.listener.InventoryClickListener
 
onInventoryClose(InventoryCloseEvent) - Method in class io.github.portlek.smartinventory.listener.InventoryCloseListener
 
onInventoryDrag(InventoryDragEvent) - Method in class io.github.portlek.smartinventory.listener.InventoryDragListener
 
onInventoryOpen(InventoryOpenEvent) - Method in class io.github.portlek.smartinventory.listener.InventoryOpenListener
 
onPlayerQuit(PlayerQuitEvent) - Method in class io.github.portlek.smartinventory.listener.PlayerQuitListener
 
onPluginDisable(PluginDisableEvent) - Method in class io.github.portlek.smartinventory.listener.PluginDisableListener
 
open(Page, Player) - Method in interface io.github.portlek.smartinventory.InventoryOpener
opens the page for the given player.
open(Page, Player) - Method in class io.github.portlek.smartinventory.opener.ChestInventoryOpener
 
open(Player, int, Map<String, Object>) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
open(Player) - Method in interface io.github.portlek.smartinventory.Page
opens the page to the given player.
open(Player, int) - Method in interface io.github.portlek.smartinventory.Page
opens the page to the given player.
open(Player, Map<String, Object>) - Method in interface io.github.portlek.smartinventory.Page
opens the page to the given player.
open(Player, int, Map<String, Object>) - Method in interface io.github.portlek.smartinventory.Page
opens the page for the player.
OpenEvent - Interface in io.github.portlek.smartinventory.event.abs
 
openNext() - Method in interface io.github.portlek.smartinventory.InventoryContents
opens the next page with using Pagination.
openPrevious() - Method in interface io.github.portlek.smartinventory.InventoryContents
opens the previous page with using Pagination.
OutsideClickEvent - Interface in io.github.portlek.smartinventory.event.abs
 

P

page() - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
page(int) - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
page() - Method in interface io.github.portlek.smartinventory.InventoryContents
obtains the page of the this.
Page - Interface in io.github.portlek.smartinventory
an interface to determine Inventory.
page(int) - Method in interface io.github.portlek.smartinventory.Pagination
sets the current page.
PageClickEvent - Interface in io.github.portlek.smartinventory.event.abs
 
PageEvent - Interface in io.github.portlek.smartinventory.event.abs
 
pagination() - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
pagination() - Method in interface io.github.portlek.smartinventory.InventoryContents
gets the pagination system linked to this.
Pagination - Interface in io.github.portlek.smartinventory
a class which lets you switch pages; easily get icons in the given page, easily manipulate the pages and check if a page is the first or the last one (Pagination.isFirst() / Pagination.isLast()).
parent() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
parent(Page) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
parent() - Method in interface io.github.portlek.smartinventory.Page
obtains tha parent page of this.
parent(Page) - Method in interface io.github.portlek.smartinventory.Page
sets the parent of the page.
Pattern<T> - Class in io.github.portlek.smartinventory.util
a class representing a pattern with arbitrary keys and values.
Pattern(String...) - Constructor for class io.github.portlek.smartinventory.util.Pattern
ctor.
Pattern(boolean, String...) - Constructor for class io.github.portlek.smartinventory.util.Pattern
ctor.
PgBottomClickEvent - Class in io.github.portlek.smartinventory.event
 
PgBottomClickEvent(Plugin, InventoryClickEvent, InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgBottomClickEvent
 
PgClickEvent - Class in io.github.portlek.smartinventory.event
 
PgClickEvent(Plugin, InventoryClickEvent, InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgClickEvent
 
PgCloseEvent - Class in io.github.portlek.smartinventory.event
 
PgCloseEvent(InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgCloseEvent
 
PgInitEvent - Class in io.github.portlek.smartinventory.event
 
PgInitEvent(InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgInitEvent
 
PgOpenEvent - Class in io.github.portlek.smartinventory.event
 
PgOpenEvent(Plugin, InventoryOpenEvent, InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgOpenEvent
 
PgOutsideClickEvent - Class in io.github.portlek.smartinventory.event
 
PgOutsideClickEvent(Plugin, InventoryClickEvent, InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgOutsideClickEvent
 
PgTickEvent - Class in io.github.portlek.smartinventory.event
 
PgTickEvent(InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgTickEvent
 
PgUpdateEvent - Class in io.github.portlek.smartinventory.event
 
PgUpdateEvent(InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PgUpdateEvent
 
player() - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
player() - Method in interface io.github.portlek.smartinventory.InventoryContents
obtains the player of the contents.
PlayerQuitListener - Class in io.github.portlek.smartinventory.listener
 
PlayerQuitListener(SmartInventory) - Constructor for class io.github.portlek.smartinventory.listener.PlayerQuitListener
 
PlgnDisableEvent - Class in io.github.portlek.smartinventory.event
 
PlgnDisableEvent(InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PlgnDisableEvent
 
PluginDisableListener - Class in io.github.portlek.smartinventory.listener
 
PluginDisableListener(SmartInventory) - Constructor for class io.github.portlek.smartinventory.listener.PluginDisableListener
 
PlyrQuitEvent - Class in io.github.portlek.smartinventory.event
 
PlyrQuitEvent(InventoryContents) - Constructor for class io.github.portlek.smartinventory.event.PlyrQuitEvent
 
previous() - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
previous() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
previous() - Method in interface io.github.portlek.smartinventory.Pagination
sets the current page to the previous page, if the current page is already the first page, this do nothing.
previous() - Method in interface io.github.portlek.smartinventory.SlotIterator
moves the cursor to the previous position inside the inventory.
provider() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
provider(InventoryProvider) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
provider() - Method in interface io.github.portlek.smartinventory.Page
obtains the inventory provider.
provider(InventoryProvider) - Method in interface io.github.portlek.smartinventory.Page
sets the provider to the given provider

Q

QuitEvent - Interface in io.github.portlek.smartinventory.event.abs
 

R

registerOpeners(InventoryOpener...) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
registerOpeners(InventoryOpener...) - Method in interface io.github.portlek.smartinventory.SmartInventory
registers the given inventory openers.
removeAll(ItemStack) - Method in interface io.github.portlek.smartinventory.InventoryContents
removes all occurrences of the item from the inventory.
removeAll(Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
removes all occurrences of the item from the inventory.
removeAmount(ItemStack, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
removes the specified amount of items from the inventory.
removeAmount(Icon, int) - Method in interface io.github.portlek.smartinventory.InventoryContents
removes the specified amount of items from the inventory.
removeContent(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
removeContent(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
removes the given player's InventoryContents.
removeContentByInventory(Inventory) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
removeContentByInventory(Inventory) - Method in interface io.github.portlek.smartinventory.SmartInventory
removes the given inventory's InventoryContents.
removeFirst(ItemStack) - Method in interface io.github.portlek.smartinventory.InventoryContents
clears the first slot where the given item is in.
removeFirst(Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
clears the first slot where the given item is in.
removeLastPage(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
removeLastPage(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
removes the given player's latest opened Page.
removePage(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
removePage(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
removes the given player's Page.
removeTask(Player) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
removeTask(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
removes given player of the ticking task.
reopen() - Method in interface io.github.portlek.smartinventory.InventoryContents
re open the current page.
reset() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
reset() - Method in interface io.github.portlek.smartinventory.SlotIterator
resets iterator to its original position specified while creation.
row() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
row(int) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
row() - Method in interface io.github.portlek.smartinventory.event.abs.ClickEvent
 
row() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
row() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
row(int) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
row() - Method in interface io.github.portlek.smartinventory.Page
obtains row of the page.
row(int) - Method in interface io.github.portlek.smartinventory.Page
set the row of the page.
row() - Method in interface io.github.portlek.smartinventory.SlotIterator
gets the current row of the iterator.
row(int) - Method in interface io.github.portlek.smartinventory.SlotIterator
sets the current row of the iterator.

S

set(int, int, Icon) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
set(Icon) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
set(int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
sets the item in the inventory at the given slot index.
set(SlotPos, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
Same as InventoryContents.set(int, Icon), but with a SlotPos instead of the index.
set(int, int, Icon) - Method in interface io.github.portlek.smartinventory.InventoryContents
same as InventoryContents.set(int, Icon), but with a row and a column instead of the index.
set(Icon) - Method in interface io.github.portlek.smartinventory.SlotIterator
replaces the icon at the current position in the inventory by the given icon.
setContents(Player, InventoryContents) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
setContents(Player, InventoryContents) - Method in interface io.github.portlek.smartinventory.SmartInventory
sets the given player of the contents to the given contents.
setContentsByInventory(Inventory, InventoryContents) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
setContentsByInventory(Inventory, InventoryContents) - Method in interface io.github.portlek.smartinventory.SmartInventory
sets the given inventory of the contents to the given contents.
setDefault(T) - Method in class io.github.portlek.smartinventory.util.Pattern
sets a new default value, which can be null and will override the previous value if present.
setEditable(SlotPos, boolean) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
setEditable(SlotPos) - Method in interface io.github.portlek.smartinventory.InventoryContents
makes a slot editable, which enables the player to put items in and take items out of the inventory in the specified slot.
setEditable(SlotPos, boolean) - Method in interface io.github.portlek.smartinventory.InventoryContents
makes a slot editable, which enables the player to put items in and take items out of the inventory in the specified slot.
setIcons(Icon...) - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
setIcons(Icon...) - Method in interface io.github.portlek.smartinventory.Pagination
sets all the icons for this Pagination.
setIconsPerPage(int) - Method in class io.github.portlek.smartinventory.content.BasicPagination
 
setIconsPerPage(int) - Method in interface io.github.portlek.smartinventory.Pagination
sets the maximum amount of icons per page.
setPage(Player, Page) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
setPage(Player, Page) - Method in interface io.github.portlek.smartinventory.SmartInventory
sets the given player of the page to the given page.
setProperty(String, Object) - Method in class io.github.portlek.smartinventory.content.BasicInventoryContents
 
setProperty(String, Object) - Method in interface io.github.portlek.smartinventory.InventoryContents
sets the value of the property with the given name.
setTask(Player, BukkitRunnable) - Method in class io.github.portlek.smartinventory.manager.BasicSmartInventory
 
setTask(Player, BukkitRunnable) - Method in interface io.github.portlek.smartinventory.SmartInventory
sets the given player of the ticking task to the given task.
slot() - Method in interface io.github.portlek.smartinventory.event.abs.ClickEvent
 
slot() - Method in class io.github.portlek.smartinventory.event.IcClickEvent
 
SlotIterator - Interface in io.github.portlek.smartinventory
a class that allows you to iterate through the slots of an inventory either horizontally or vertically.
SlotIterator.Type - Enum in io.github.portlek.smartinventory
the iterate type of the inventory.
SlotPos - Class in io.github.portlek.smartinventory.util
represents the position (row + column) of a slot in an inventory.
SlotPos(int, int) - Constructor for class io.github.portlek.smartinventory.util.SlotPos
ctor.
slots() - Method in interface io.github.portlek.smartinventory.event.abs.DragEvent
 
slots() - Method in class io.github.portlek.smartinventory.event.IcDragEvent
 
slots() - Method in interface io.github.portlek.smartinventory.InventoryContents
returns a list of all the slots in the inventory.
SmartEvent - Interface in io.github.portlek.smartinventory.event.abs
 
SmartInventory - Interface in io.github.portlek.smartinventory
a class that manages all smart inventories.
Source<T> - Interface in io.github.portlek.observer
a class that is the observer's source.
startDelay() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
startDelay(long) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
startDelay() - Method in interface io.github.portlek.smartinventory.Page
obtains the start delay for the task.
startDelay(long) - Method in interface io.github.portlek.smartinventory.Page
sets the start delay of the task.
started() - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
started() - Method in interface io.github.portlek.smartinventory.SlotIterator
checks if this iterator has been started.
stopTick(Player) - Method in interface io.github.portlek.smartinventory.SmartInventory
stops the ticking of the given player.
subscribe(Target<T>) - Method in class io.github.portlek.observer.source.BasicSource
 
subscribe(Target<T>) - Method in interface io.github.portlek.observer.Source
subscribes the given Target into the source.
supports(InventoryType) - Method in interface io.github.portlek.smartinventory.InventoryOpener
checks if the inventory type is supporting for this.
supports(InventoryType) - Method in class io.github.portlek.smartinventory.opener.ChestInventoryOpener
 

T

Target<T> - Interface in io.github.portlek.observer
a class that runs the update method when the observer call it.
tick(InventoryContents) - Method in interface io.github.portlek.smartinventory.InventoryProvider
runs every tick.
tick() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
tick(long) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
tick() - Method in interface io.github.portlek.smartinventory.Page
obtains the tick amount.
tick(long) - Method in interface io.github.portlek.smartinventory.Page
sets the tick.
tick(Player, Page) - Method in interface io.github.portlek.smartinventory.SmartInventory
starts the ticking of the given player with the given page.
tickEnable() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
tickEnable(boolean) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
tickEnable() - Method in interface io.github.portlek.smartinventory.Page
obtains the task enable.
tickEnable(boolean) - Method in interface io.github.portlek.smartinventory.Page
sets the task's activity.
TickEvent - Interface in io.github.portlek.smartinventory.event.abs
 
title() - Method in class io.github.portlek.smartinventory.page.BasicPage
 
title(String) - Method in class io.github.portlek.smartinventory.page.BasicPage
 
title() - Method in interface io.github.portlek.smartinventory.Page
obtains title of the page.
title(String) - Method in interface io.github.portlek.smartinventory.Page
sets the title of the page.
toString() - Method in class io.github.portlek.smartinventory.util.SlotPos
 
type() - Method in class io.github.portlek.smartinventory.handle.BasicHandle
 
Type<T> - Interface in io.github.portlek.smartinventory
an interface to determine type of the classes at runtime.
type() - Method in interface io.github.portlek.smartinventory.Type
obtains the type of the class.

U

unsubscribe(Target<T>) - Method in class io.github.portlek.observer.source.BasicSource
 
unsubscribe(Target<T>) - Method in interface io.github.portlek.observer.Source
remove the given Target from the subscriptions of the source.
update(T) - Method in interface io.github.portlek.observer.Target
runs when the observer calls it.
update(InventoryContents) - Method in interface io.github.portlek.smartinventory.InventoryProvider
UpdateEvent - Interface in io.github.portlek.smartinventory.event.abs
 

V

valueOf(String) - Static method in enum io.github.portlek.smartinventory.SlotIterator.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.github.portlek.smartinventory.SlotIterator.Type
Returns an array containing the constants of this enum type, in the order they are declared.

W

whenBottomClick(Consumer<BottomClickEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a bottom inventory click event.
whenBottomClick(Consumer<BottomClickEvent>, List<Predicate<BottomClickEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a bottom inventory click event.
whenClick(Consumer<ClickEvent>) - Method in interface io.github.portlek.smartinventory.Icon
adds the given ClickEvent to the icon's handles.
whenClick(Consumer<ClickEvent>, List<Predicate<ClickEvent>>) - Method in interface io.github.portlek.smartinventory.Icon
adds the given ClickEvent with the requirements to the icon's handles.
whenClose(Consumer<CloseEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a close event.
whenClose(Consumer<CloseEvent>, List<Predicate<CloseEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a close event.
whenDrag(Consumer<DragEvent>) - Method in interface io.github.portlek.smartinventory.Icon
adds the given DragEvent to the icon's handles.
whenDrag(Consumer<DragEvent>, List<Predicate<DragEvent>>) - Method in interface io.github.portlek.smartinventory.Icon
adds the given DragEvent with the requirements to the icon's handles.
whenEmptyClick(Consumer<PageClickEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a empty slot click event.
whenEmptyClick(Consumer<PageClickEvent>, List<Predicate<PageClickEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a empty slot click event.
whenInit(Consumer<InitEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a init event.
whenInit(Consumer<InitEvent>, List<Predicate<InitEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a init event.
whenInteract(Consumer<IconEvent>) - Method in interface io.github.portlek.smartinventory.Icon
adds the given IconEvent to the icon's handles.
whenInteract(Consumer<IconEvent>, List<Predicate<IconEvent>>) - Method in interface io.github.portlek.smartinventory.Icon
adds the given IconEvent with the requirements to the icon's handles.
whenOpen(Consumer<OpenEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a open event.
whenOpen(Consumer<OpenEvent>, List<Predicate<OpenEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a open event.
whenOutsideClick(Consumer<OutsideClickEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a outside inventory click event.
whenOutsideClick(Consumer<OutsideClickEvent>, List<Predicate<OutsideClickEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a outside inventory click event.
whenTick(Consumer<TickEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a tick event.
whenTick(Consumer<TickEvent>, List<Predicate<TickEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a tick event.
whenUpdate(Consumer<UpdateEvent>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a update event.
whenUpdate(Consumer<UpdateEvent>, List<Predicate<UpdateEvent>>) - Method in interface io.github.portlek.smartinventory.Page
adds the given consumer as a update event.
withPattern(Pattern<Boolean>, int, int) - Method in class io.github.portlek.smartinventory.content.BasicSlotIterator
 
withPattern(Pattern<Boolean>) - Method in interface io.github.portlek.smartinventory.SlotIterator
setting a pattern using this method will use it as a guideline where the slot iterator can set icons or not.
withPattern(Pattern<Boolean>, int, int) - Method in interface io.github.portlek.smartinventory.SlotIterator
setting a pattern using this method will use it as a guideline where the slot iterator can set icons or not.
A B C D E F G H I L N O P Q R S T U V W 
Skip navigation links

Copyright © 2021. All rights reserved.