Package fr.maxlego08.menu.api.players
Interface PlayerData
public interface PlayerData
Player's Data
-
Method Summary
Modifier and TypeMethodDescriptionvoidAllows you to add a databooleancontainsKey(String key) Check if data existGet datagetDatas()Allows to return list of playerData.Return uuid of playervoidremoveData(Data data) Allows you to delete a datavoidremoveData(String key) Allows you to delete aData
-
Method Details
-
getUniqueId
UUID getUniqueId()Return uuid of player- Returns:
- uniqueId
-
getDatas
Collection<Data> getDatas()Allows to return list of playerData. Attention you cannot modify the values directly from this collection.- Returns:
- collections
-
removeData
Allows you to delete aData- Parameters:
key- Data key
-
containsKey
Check if data exist- Parameters:
key- Data key- Returns:
- boolean
-
getData
Get data- Parameters:
key- Data key- Returns:
- optional
-