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