public class PropertiesConfiguration extends LocalConfiguration
java.util.Properties.| Modifier and Type | Field and Description |
|---|---|
protected File |
path |
protected Properties |
properties |
allowedDataCycleBlocks, allowSymlinks, butcherDefaultRadius, butcherMaxRadius, defaultChangeLimit, defaultDisallowedBlocks, defaultMaxPolygonalPoints, defaultMaxPolyhedronPoints, disallowedBlocks, logCommands, logFile, maxBrushRadius, maxChangeLimit, maxPolygonalPoints, maxPolyhedronPoints, maxRadius, maxSuperPickaxeSize, navigationUseGlass, navigationWand, navigationWandMaxDistance, noDoubleSlash, profile, registerHelp, saveDir, scriptsDir, scriptTimeout, shellSaveType, showHelpInfo, snapshotRepo, superPickaxeDrop, superPickaxeManyDrop, useInventory, useInventoryCreativeOverride, useInventoryOverride, wandItem| Constructor and Description |
|---|
PropertiesConfiguration(File path)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
getBool(String key,
boolean def)
Get a boolean value.
|
protected double |
getDouble(String key,
double def)
Get a double value.
|
protected int |
getInt(String key,
int def)
Get an integer value.
|
protected Set<Integer> |
getIntSet(String key,
int[] def)
Get a double value.
|
protected String |
getString(String key,
String def)
Get a string value.
|
void |
load()
Load the configuration.
|
getWorkingDirectoryprotected Properties properties
protected File path
public PropertiesConfiguration(File path)
path - the path tot he configurationpublic void load()
LocalConfigurationload in class LocalConfigurationprotected String getString(String key, String def)
key - the keydef - the default valueprotected boolean getBool(String key, boolean def)
key - the keydef - the default valueprotected int getInt(String key, int def)
key - the keydef - the default valueprotected double getDouble(String key, double def)
key - the keydef - the default valueCopyright © 2010-2014. All Rights Reserved.