ConfigurationHolder

Holds the current configurations.

Properties

Link copied to clipboard
private final static Configuration currentConfiguration

remoteConfiguration if the client is currently connected to a server, localConfiguration otherwise.

Link copied to clipboard
public final static ConfigurationHolder INSTANCE
Link copied to clipboard

The currently loaded local configuration.

Link copied to clipboard

The error occurred during the ast configuration load. Will be null if it was successful.

Link copied to clipboard

The configuration of remote server the client is currently connected to, or null, if the client is not connected to a server. It is the configuration of the integrated server, if running.

Functions

Link copied to clipboard
public final static Configuration getCurrentConfiguration()
Link copied to clipboard
public final static Configuration getLocalConfiguration()

The currently loaded local configuration.

Link copied to clipboard

The error occurred during the ast configuration load. Will be null if it was successful.

Link copied to clipboard
@Environment(value = EnvType.CLIENT)
public final static Configuration getRemoteConfiguration()

The configuration of remote server the client is currently connected to, or null, if the client is not connected to a server. It is the configuration of the integrated server, if running.

Link copied to clipboard
public final static Unit setLocalConfiguration(static Configuration localConfiguration)

The currently loaded local configuration.

Link copied to clipboard
@Environment(value = EnvType.CLIENT)
public final static Unit setRemoteConfiguration(static Configuration remoteConfiguration)

The configuration of remote server the client is currently connected to, or null, if the client is not connected to a server. It is the configuration of the integrated server, if running.

Link copied to clipboard
public final static Boolean tryLoadLocalConfiguration()

Tries to load the local configuration from disk into localConfiguration. If the load fails, localConfiguration won't be changed, and the error can be found in localConfigurationLoadException.