Package net.citizensnpcs.api.util
Class MemoryDataKey
java.lang.Object
net.citizensnpcs.api.util.DataKey
net.citizensnpcs.api.util.MemoryDataKey
A DataKey implementation that uses raw Map<String, Object> for storage instead of Bukkit's
ConfigurationSection. This preserves literal key names containing dots instead of interpreting them as path
separators.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanbooleangetBoolean(String key) doubledoublegetFromRoot(String path) intintlonglonggetRelative(String relative) Returns the root map backing this DataKey.inthashCode()booleanname()voidvoidsetBoolean(String key, boolean value) voidvoidvoidvoidvoidvoidtoString()Methods inherited from class net.citizensnpcs.api.util.DataKey
createRelativeKey, getBoolean, getIntegerSubKeys, getPath, getRawUnchecked, getRelative, getString, keyExists
-
Constructor Details
-
MemoryDataKey
public MemoryDataKey() -
MemoryDataKey
-
-
Method Details
-
copy
-
equals
-
getBoolean
- Specified by:
getBooleanin classDataKey
-
getDouble
-
getDouble
-
getFromRoot
- Specified by:
getFromRootin classDataKey
-
getInt
-
getInt
-
getLong
-
getLong
-
getRaw
-
getRelative
- Specified by:
getRelativein classDataKey
-
getRootMap
Returns the root map backing this DataKey. -
getString
-
getSubKeys
- Specified by:
getSubKeysin classDataKey
-
getValuesDeep
- Specified by:
getValuesDeepin classDataKey
-
hashCode
public int hashCode() -
keyExists
-
name
-
removeKey
-
setBoolean
- Specified by:
setBooleanin classDataKey
-
setDouble
-
setInt
-
setLong
-
setMap
-
setRaw
-
setString
-
toString
-