Class TeamStorage
java.lang.Object
com.booksaw.betterTeams.team.storage.team.TeamStorage
- Direct Known Subclasses:
SQLTeamStorage,YamlTeamStorage
Used to manage the storage for a single team. All values in set using
set(...) will be automatically saved
NOTE TO SUBCLASSES: Ensure you save any changes if they are not saved automatically
- Author:
- booksaw
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabstract voidaddAllyRequest(UUID requesting) abstract voidabstract voidabstract voiddemotePlayer(TeamPlayer demotePlayer) booleangetBoolean(StoredTeamValue reference) abstract booleangetBoolean(String reference) doublegetDouble(StoredTeamValue reference) abstract doubleabstract voidgetEchestContents(org.bukkit.inventory.Inventory inventory) intgetInt(StoredTeamValue reference) abstract intabstract List<TeamPlayer> getString(StoredTeamValue reference) abstract StringgetWarps()abstract voidpromotePlayer(TeamPlayer promotePlayer) abstract voidremoveAlly(UUID ally) abstract voidremoveAllyRequest(UUID requesting) abstract voidabstract voidremoveWarp(Warp component) abstract voidvoidset(StoredTeamValue location, Object value) Used to store the given information at the given locationvoidset(String location, TeamStorageType storageType, Object value) Used to store the given information at the given locationvoidUsed to store the given information at the given locationabstract voidsetAllyList(List<String> players) abstract voidsetAllyRequestList(List<String> players) abstract voidsetAnchor(TeamPlayer player, boolean anchor) abstract voidsetAnchoredPlayerList(List<String> players) abstract voidsetBanList(List<String> players) abstract voidsetClaimedChests(List<String> chests) abstract voidsetEchestContents(org.bukkit.inventory.Inventory inventory) abstract voidsetPlayerList(List<String> players) abstract voidsetTitle(TeamPlayer player) protected abstract voidsetValue(String location, TeamStorageType storageType, Object value) Used to set a value after checks have been madeabstract void
-
Field Details
-
team
-
-
Constructor Details
-
TeamStorage
-
-
Method Details
-
set
Used to store the given information at the given location- Parameters:
location- The location to store the informationvalue- The value to store
-
set
Used to store the given information at the given locationIf possible use a StoredTeamValue
This will assume the value type is a string
- Parameters:
location- The location to store the informationvalue- the value to store
-
set
Used to store the given information at the given location- Parameters:
location- The location to store the informationstorageType- The storage type of the informationvalue- The value to store
-
setValue
Used to set a value after checks have been made- Parameters:
location- the location to store the valuestorageType- The type of value that is being storedvalue- The value to store
-
getString
-
getString
-
getBoolean
-
getBoolean
-
getDouble
-
getDouble
-
getInt
-
getInt
-
getPlayerList
-
setPlayerList
-
getAnchoredPlayerList
-
setAnchoredPlayerList
-
setAnchor
-
getBanList
-
setBanList
-
getAllyList
-
setAllyList
-
getAllyRequestList
-
setAllyRequestList
-
getEchestContents
public abstract void getEchestContents(org.bukkit.inventory.Inventory inventory) -
setEchestContents
public abstract void setEchestContents(org.bukkit.inventory.Inventory inventory) -
getWarps
-
setWarps
-
getClaimedChests
-
setClaimedChests
-
addBan
-
removeBan
-
addAlly
-
removeAlly
-
addAllyRequest
-
removeAllyRequest
-
addWarp
-
removeWarp
-
promotePlayer
-
demotePlayer
-
setTitle
-
getRawMeta
-
saveMeta
-