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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Doubleabstract APlayerabstract ACategoryabstract intgetPage()abstract intgetPages()abstract Auctionabstract RecentAuctionTypeabstract Stringabstract AuctionSortTypeabstract booleanabstract booleannotReady()abstract voidreset()This will reset that this object is holding.abstract voidModifies the cached amount in this object.abstract voidsetCategory(ACategory category) Modifies the cached category in this object.abstract voidsetPlayerAuction(Auction playerAuction) Modifies the cached auction in this object.abstract voidsetReady(boolean isReady) Modifies if the GUI is ready to receive a click from the player.abstract voidsetRecentActionType(RecentAuctionType recentActionType) Modifies the previous inventory that the player opened.abstract voidModifies 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.
-