YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.server.dedicated.PropertyManager Class Reference

Public Member Functions

 PropertyManager (File par1File, ILogAgent par2ILogAgent)
 
void logMessageAndSave ()
 
void saveProperties ()
 
File getPropertiesFile ()
 
String getProperty (String par1Str, String par2Str)
 
int getIntProperty (String par1Str, int par2)
 
boolean getBooleanProperty (String par1Str, boolean par2)
 
void setProperty (String par1Str, Object par2Obj)
 

Constructor & Destructor Documentation

net.minecraft.server.dedicated.PropertyManager.PropertyManager ( File  par1File,
ILogAgent  par2ILogAgent 
)

Member Function Documentation

boolean net.minecraft.server.dedicated.PropertyManager.getBooleanProperty ( String  par1Str,
boolean  par2 
)

Gets a boolean property. If it does not exist, set it to the specified value.

int net.minecraft.server.dedicated.PropertyManager.getIntProperty ( String  par1Str,
int  par2 
)

Gets an integer property. If it does not exist, set it to the specified value.

File net.minecraft.server.dedicated.PropertyManager.getPropertiesFile ( )

Returns this PropertyManager's file object used for property saving.

String net.minecraft.server.dedicated.PropertyManager.getProperty ( String  par1Str,
String  par2Str 
)

Gets a property. If it does not exist, set it to the specified value.

void net.minecraft.server.dedicated.PropertyManager.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 net.minecraft.server.dedicated.PropertyManager.saveProperties ( )

Writes the properties to the properties file.

void net.minecraft.server.dedicated.PropertyManager.setProperty ( String  par1Str,
Object  par2Obj 
)

Saves an Object with the given property name.


The documentation for this class was generated from the following file: