|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.server.dedicated.PropertyManager
public class PropertyManager
Field Summary | |
---|---|
static Logger |
logger
Reference to the logger. |
Constructor Summary | |
---|---|
PropertyManager(File par1File)
|
Method Summary | |
---|---|
boolean |
getBooleanProperty(String par1Str,
boolean par2)
Gets a boolean property. |
int |
getIntProperty(String par1Str,
int par2)
Gets an integer property. |
File |
getPropertiesFile()
Returns this PropertyManager's file object used for property saving. |
String |
getProperty(String par1Str,
String par2Str)
Gets a property. |
void |
logMessageAndSave()
logs an info message then calls saveSettingsToFile Yes this appears to be a potential stack overflow - these 2 functions call each other repeatdly if an exception occurs. |
void |
saveProperties()
Writes the properties to the properties file. |
void |
setProperty(String par1Str,
Object par2Obj)
Saves an Object with the given property name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Logger logger
Constructor Detail |
---|
public PropertyManager(File par1File)
Method Detail |
---|
public void logMessageAndSave()
public void saveProperties()
public File getPropertiesFile()
public String getProperty(String par1Str, String par2Str)
public int getIntProperty(String par1Str, int par2)
public boolean getBooleanProperty(String par1Str, boolean par2)
public void setProperty(String par1Str, Object par2Obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |