Package com.sk89q.worldedit.util
Class PropertiesConfiguration
java.lang.Object
com.sk89q.worldedit.LocalConfiguration
com.sk89q.worldedit.util.PropertiesConfiguration
Simple LocalConfiguration that loads settings using
java.util.Properties
.-
Field Summary
Fields inherited from class com.sk89q.worldedit.LocalConfiguration
allowedDataCycleBlocks, allowSymlinks, butcherDefaultRadius, butcherMaxRadius, calculationTimeout, defaultChangeLimit, defaultLocale, defaultLocaleName, defaultMaxPolygonalPoints, defaultMaxPolyhedronPoints, defaultVerticalHeight, disallowedBlocks, extendedYLimit, logCommands, logFile, logFormat, maxBrushRadius, maxCalculationTimeout, maxChangeLimit, maxPolygonalPoints, maxPolyhedronPoints, maxRadius, maxSuperPickaxeSize, navigationUseGlass, navigationWand, navigationWandMaxDistance, profile, registerHelp, saveDir, scriptsDir, scriptTimeout, serverSideCUI, shellSaveType, showHelpInfo, snapshotDatabase, snapshotRepo, snapshotsConfigured, superPickaxeDrop, superPickaxeManyDrop, traceUnflushedSessions, useInventory, useInventoryCreativeOverride, useInventoryOverride, wandItem
-
Constructor Summary
ConstructorDescriptionPropertiesConfiguration
(File path) Deprecated.PropertiesConfiguration
(Path path) Construct the object. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Get a boolean value.protected double
Get a double value.protected int
Get an integer value.Get a double value.protected String
Get a string value.getStringSet
(String key, String[] def) Get a String set.void
load()
Load the configuration.protected void
Called to load extra configuration.Methods inherited from class com.sk89q.worldedit.LocalConfiguration
convertLegacyItem, getDefaultDisallowedBlocks, getWorkingDirectory, getWorkingDirectoryPath, initializeSnapshotConfiguration, setDefaultLocaleName
-
Field Details
-
properties
-
path
-
-
Constructor Details
-
PropertiesConfiguration
Construct the object. The configuration isn't loaded yet.- Parameters:
path
- the path to the configuration
-
PropertiesConfiguration
Deprecated.Construct the object. The configuration isn't loaded yet.- Parameters:
path
- the path to the configuration
-
-
Method Details
-
load
public void load()Description copied from class:LocalConfiguration
Load the configuration.- Specified by:
load
in classLocalConfiguration
-
loadExtra
protected void loadExtra()Called to load extra configuration. -
getString
Get a string value.- Parameters:
key
- the keydef
- the default value- Returns:
- the value
-
getBool
Get a boolean value.- Parameters:
key
- the keydef
- the default value- Returns:
- the value
-
getInt
Get an integer value.- Parameters:
key
- the keydef
- the default value- Returns:
- the value
-
getDouble
Get a double value.- Parameters:
key
- the keydef
- the default value- Returns:
- the value
-
getIntSet
Get a double value.- Parameters:
key
- the keydef
- the default value- Returns:
- the value
-
getStringSet
Get a String set.- Parameters:
key
- the keydef
- the default value- Returns:
- the value
-
PropertiesConfiguration(Path)