Class AGUIPlayer
java.lang.Object
com.olziedev.playerauctions.api.player.AGUIPlayer
Handles and manages all the player data for the current open GUI.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Double
abstract APlayer
abstract ACategory
abstract int
getPage()
abstract int
getPages()
abstract Auction
abstract RecentAuctionType
abstract String
abstract AuctionSortType
abstract boolean
abstract boolean
notReady()
abstract void
reset()
This will reset that this object is holding.abstract void
Modifies the cached amount in this object.abstract void
setCategory
(ACategory category) Modifies the cached category in this object.abstract void
setPlayerAuction
(Auction playerAuction) Modifies the cached auction in this object.abstract void
setReady
(boolean isReady) Modifies if the GUI is ready to receive a click from the player.abstract void
setRecentActionType
(RecentAuctionType recentActionType) Modifies the previous inventory that the player opened.abstract void
Modifies the cached search in this object.
-
Constructor Details
-
AGUIPlayer
public AGUIPlayer()
-
-
Method Details
-
getAuctionPlayer
- 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.
-
getPlayerAuction
- Returns:
- The cached auction in this object.
-
setPlayerAuction
Modifies the cached auction in this object.- Parameters:
playerAuction
- The cached auction 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.
-
getAmount
- Returns:
- The cached amount in this object.
-
setAmount
Modifies the cached amount in this object.- Parameters:
amount
- The cached amount for the GUI.
-
getRecentActionType
- Returns:
- The recent auction type in this object.
-
setRecentActionType
Modifies the previous inventory that the player opened.- Parameters:
recentActionType
- The recent auction type for the GUI.
-
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.
-