Class WGUIPlayer
java.lang.Object
com.olziedev.playerwarps.api.player.WGUIPlayer
Handles and manages all the player data for the current open GUI.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract WCategory
abstract int
getPage()
abstract int
getPages()
abstract Warp
abstract String
abstract WarpSortType
abstract WPlayer
abstract boolean
abstract boolean
notReady()
abstract void
reset()
This will reset that this object is holding.abstract void
setCategory
(WCategory category) Modifies the cached category in this object.abstract void
setPlayerWarp
(Warp playerWarp) Modifies the cached warp in this object.abstract void
setReady
(boolean isReady) Modifies if the GUI is ready to receive a click from the player.abstract void
Modifies the cached search in this object.
-
Constructor Details
-
WGUIPlayer
public WGUIPlayer()
-
-
Method Details
-
getWarpPlayer
- Returns:
- The owner of this object.
-
getCategory
- Returns:
- The cached category object.
-
setCategory
Modifies the cached category in this object.- Parameters:
category
- The cached category object.
-
getPage
public abstract int getPage()- Returns:
- The cached pages for the GUI.
-
getPages
public abstract int getPages()- Returns:
- The cached pages for the GUI.
-
getSearch
- Returns:
- The cached search for the GUI.
-
setSearch
Modifies the cached search in this object.- Parameters:
search
- The cached search for the GUI.
-
getSortType
- Returns:
- The cached sort type for the GUI.
-
getPlayerWarp
- Returns:
- The cached warp in this object.
-
setPlayerWarp
Modifies the cached warp in this object.- Parameters:
playerWarp
- The cached warp for the GUI.
-
notReady
public abstract boolean notReady()- Returns:
- If the GUI is not ready to receive a click from the player.
-
setReady
public abstract void setReady(boolean isReady) Modifies if the GUI is ready to receive a click from the player.- Parameters:
isReady
- If the GUI is ready.
-
reset
public abstract void reset()This will reset that this object is holding. -
hasInventoryOpen
public abstract boolean hasInventoryOpen()- Returns:
- If the player has one of the plugins' menu open.
-