Configuration

public final class Configuration(source)

Staff mod logical server and gameplay configuration.

Parameters

itemConfigurations

Configuration for each supported item in the staff

Constructors

Link copied to clipboard
public Configuration Configuration(Map<Identifier, IConfiguration<?>> itemConfigurations)

Properties

Link copied to clipboard
public final static Codec<Configuration> CODEC
Link copied to clipboard

Functions

Link copied to clipboard
public final static Configuration createDefault()

Creates the default configuration.

Link copied to clipboard
Link copied to clipboard
public final static Configuration loadOrCreateDefault()

Loads the configuration from the configuration folder if exists, or saves the default if it doesn't exist. This doesn't handle IO errors (like inaccessible file), malformed JSON, or encoding and decoding failures.