Package com.earth2me.essentials.config
Class EssentialsConfiguration
java.lang.Object
com.earth2me.essentials.config.EssentialsConfiguration
- Direct Known Subclasses:
EssentialsUserConfiguration
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEssentialsConfiguration
(File configFile) EssentialsConfiguration
(File configFile, String templateName) EssentialsConfiguration
(File configFile, String templateName, Class<?> resourceClass) EssentialsConfiguration
(File configFile, String templateName, String header) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
void
getBigDecimal
(String path, BigDecimal def) boolean
getBoolean
(String path, boolean def) double
getFile()
float
int
getKeys()
<T> List
<T> getLocation
(String path) getLocationSectionMap
(String path) long
getMap()
org.spongepowered.configurate.CommentedConfigurationNode
org.spongepowered.configurate.CommentedConfigurationNode
getSection
(String path) getStringMap
(String path) boolean
hasProperty
(String path) boolean
boolean
boolean
boolean
void
load()
org.spongepowered.configurate.CommentedConfigurationNode
void
removeProperty
(String path) void
save()
<T> void
setExplicitList
(String path, List<T> list, Type type) void
setProperty
(String path, boolean value) void
setProperty
(String path, double value) void
setProperty
(String path, float value) void
setProperty
(String path, int value) void
setProperty
(String path, long value) void
setProperty
(String path, String value) void
setProperty
(String path, BigDecimal value) void
setProperty
(String path, List<?> list) void
setProperty
(String path, Location location) void
void
setRootHolder
(Class<?> holderClass, Object holder) void
setSaveHook
(Runnable saveHook) void
Begins a transaction.void
void
stopTransaction
(boolean blocking) org.spongepowered.configurate.CommentedConfigurationNode
toSplitRoot
(String path, org.spongepowered.configurate.CommentedConfigurationNode node)
-
Field Details
-
configFile
-
-
Constructor Details
-
EssentialsConfiguration
-
EssentialsConfiguration
-
EssentialsConfiguration
-
EssentialsConfiguration
-
-
Method Details
-
getRootNode
public org.spongepowered.configurate.CommentedConfigurationNode getRootNode() -
setRootHolder
-
getFile
-
setProperty
-
getLocation
-
getLocationSectionMap
-
setProperty
-
setExplicitList
-
getList
-
isList
-
setProperty
-
getString
-
setProperty
-
getBoolean
-
isBoolean
-
setProperty
-
getLong
-
setProperty
-
getInt
-
setProperty
-
getDouble
-
setProperty
-
getFloat
-
setProperty
-
getBigDecimal
-
setRaw
-
get
-
getSection
-
newSection
public org.spongepowered.configurate.CommentedConfigurationNode newSection() -
getKeys
-
getMap
-
getStringMap
-
removeProperty
-
hasProperty
-
toSplitRoot
public org.spongepowered.configurate.CommentedConfigurationNode toSplitRoot(String path, org.spongepowered.configurate.CommentedConfigurationNode node) -
load
public void load() -
legacyFileExists
public boolean legacyFileExists() -
convertLegacyFile
public void convertLegacyFile() -
altFileExists
public boolean altFileExists() -
convertAltFile
public void convertAltFile() -
startTransaction
public void startTransaction()Begins a transaction.A transaction informs Essentials to pause the saving of data. This is should be used when bulk operations are being done and data shouldn't be saved until after the transaction has been completed.
-
stopTransaction
public void stopTransaction() -
stopTransaction
public void stopTransaction(boolean blocking) -
isTransaction
public boolean isTransaction() -
setSaveHook
-
save
public void save() -
blockingSave
public void blockingSave()
-