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
FieldsFields inherited from class com.sk89q.worldedit.LocalConfiguration
allowedDataCycleBlocks, allowSymlinks, butcherDefaultRadius, butcherMaxRadius, calculationTimeout, commandBlockSupport, defaultChangeLimit, defaultLocale, defaultLocaleName, defaultMaxPolygonalPoints, defaultMaxPolyhedronPoints, defaultVerticalHeight, disallowedBlocks, disallowedBlocksMask, extendedYLimit, logCommands, logFile, logFormat, MAX_BRUSH_RADIUS, MAX_BUTCHER_RADIUS, MAX_RADIUS, MAX_SUPER_RADIUS, 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
ConstructorsConstructorDescriptionPropertiesConfiguration(File path) Deprecated.PropertiesConfiguration(Path path) Construct the object. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanGet a boolean value.protected doubleGet a double value.protected intGet an integer value.Get a double value.protected StringGet a string value.getStringSet(String key, String[] def) Get a String set.voidload()Load the configuration.protected voidCalled to load extra configuration.Methods inherited from class com.sk89q.worldedit.LocalConfiguration
checkDisallowedBlocks, 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:LocalConfigurationLoad the configuration.- Specified by:
loadin 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)