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, 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 and Description |
---|
PropertiesConfiguration(java.io.File path)
Deprecated.
|
PropertiesConfiguration(java.nio.file.Path 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, getDefaultDisallowedBlocks, getWorkingDirectory, getWorkingDirectoryPath, initializeSnapshotConfiguration, setDefaultLocaleName
public PropertiesConfiguration(java.nio.file.Path path)
path
- the path to the configuration@Deprecated public PropertiesConfiguration(java.io.File path)
PropertiesConfiguration(Path)
path
- the path to the 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