Class PageClose
- java.lang.Object
-
- com.mrivanplays.pagedinventory.api.PageClose
-
public final class PageClose extends Object
Represents a object, created whenInventoryCloseEvent
was fired. You can make use of close events in paged inventories by usingPagedInventory.addOnCloseFunction(Consumer)
-
-
Constructor Summary
Constructors Constructor Description PageClose(org.bukkit.entity.Player closer, PagedInventory pagedInventory, Page page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull org.bukkit.entity.Player
getCloser()
Returns the player, whom have closed the specifiedPage
@NotNull Page
getPage()
Returns thePage
closed.@NotNull PagedInventory
getPagedInventory()
Returns thePagedInventory
, where the closedPage
is registered.
-
-
-
Constructor Detail
-
PageClose
public PageClose(org.bukkit.entity.Player closer, PagedInventory pagedInventory, Page page)
-
-
Method Detail
-
getCloser
@NotNull public @NotNull org.bukkit.entity.Player getCloser()
Returns the player, whom have closed the specifiedPage
- Returns:
- player closer
-
getPagedInventory
@NotNull public @NotNull PagedInventory getPagedInventory()
Returns thePagedInventory
, where the closedPage
is registered.- Returns:
- paged inventory
-
-