Package fr.maxlego08.menu.api.players
Interface Data
public interface Data
A data is composed of a key, a string, and a value, an object
-
Method Summary
-
Method Details
-
getKey
String getKey()The key- Returns:
- key
-
getValue
Object getValue()The value that is stored- Returns:
- value
-
getExpiredAt
long getExpiredAt()Permet de savoir quand la valeur doit expirer. If the value is 0 then it never exits- Returns:
- expired at
-
isExpired
boolean isExpired()Allows to know if a data is expired- Returns:
- boolean
-
add
void add(int amount) -
remove
void remove(int amount)
-