Package net.citizensnpcs.api.util
Class DataKey
java.lang.Object
net.citizensnpcs.api.util.DataKey
- Direct Known Subclasses:
MemoryDataKey
,YamlStorageWithLists.YamlKey
A hierarchical abstract storage class. Similar to Bukkit's
ConfigurationSection
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
createRelativeKey
(String from) boolean
abstract boolean
getBoolean
(String key) boolean
getBoolean
(String key, boolean value) abstract double
double
abstract DataKey
getFromRoot
(String path) abstract int
int
abstract long
long
getPath()
abstract Object
<T> T
getRawUnchecked
(String key) getRelative
(int key) abstract DataKey
getRelative
(String relative) abstract String
int
hashCode()
boolean
abstract boolean
abstract String
name()
abstract void
sectionToValues
(ConfigurationSection section) abstract void
setBoolean
(String key, boolean value) abstract void
abstract void
abstract void
abstract void
abstract void
-
Field Details
-
path
-
-
Constructor Details
-
DataKey
-
-
Method Details
-
createRelativeKey
-
equals
-
getBoolean
-
getBoolean
-
getDouble
-
getDouble
-
getFromRoot
-
getInt
-
getInt
-
getIntegerSubKeys
-
getLong
-
getLong
-
getPath
-
getRaw
-
getRawUnchecked
-
getRelative
-
getRelative
-
getString
-
getString
-
getSubKeys
-
getValuesDeep
-
hashCode
public int hashCode() -
keyExists
public boolean keyExists() -
keyExists
-
name
-
removeKey
-
sectionToValues
-
setBoolean
-
setDouble
-
setInt
-
setLong
-
setRaw
-
setString
-