public abstract class StringMapStat extends Stat
Stat.AuxDataSource, Stat.Type| Constructor and Description |
|---|
StringMapStat() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key)
Returns true if the specified key is contained in this map.
|
int |
get(String key)
Returns the value to which the specified key maps or zero if it is not contained in this
map.
|
boolean |
increment(String key,
int amount)
Adds the specified key value pair to this set, overwriting any existing mapping.
|
boolean |
put(String key,
int value)
Adds the specified key value pair to this set, overwriting any existing mapping.
|
String |
valueToString()
Derived statistics must override this method and render their value to a string.
|
clone, crc32, getCode, getKey, getModCount, getType, getType, initType, isModified, persistTo, setModCount, setModified, toString, unpersistFrompublic boolean containsKey(String key)
public int get(String key)
public boolean put(String key, int value)
public boolean increment(String key, int amount)
public String valueToString()
StatStat.toString() and to display the value in game.valueToString in class StatCopyright © 2015. All rights reserved.