Bukkit-API
1.7.9-R0.2
The inofficial Bukkit-API
|
Public Member Functions | |
String | saveToString () |
void | loadFromString (String contents) throws InvalidConfigurationException |
YamlConfigurationOptions | options () |
![]() | |
FileConfiguration () | |
FileConfiguration (Configuration defaults) | |
void | save (File file) throws IOException |
void | save (String file) throws IOException |
abstract String | saveToString () |
void | load (File file) throws FileNotFoundException, IOException, InvalidConfigurationException |
void | load (InputStream stream) throws IOException, InvalidConfigurationException |
void | load (Reader reader) throws IOException, InvalidConfigurationException |
void | load (String file) throws FileNotFoundException, IOException, InvalidConfigurationException |
abstract void | loadFromString (String contents) throws InvalidConfigurationException |
FileConfigurationOptions | options () |
![]() | |
MemoryConfiguration () | |
MemoryConfiguration (Configuration defaults) | |
void | addDefault (String path, Object value) |
void | addDefaults (Map< String, Object > defaults) |
void | addDefaults (Configuration defaults) |
void | setDefaults (Configuration defaults) |
Configuration | getDefaults () |
ConfigurationSection | getParent () |
MemoryConfigurationOptions | options () |
![]() | |
Set< String > | getKeys (boolean deep) |
Map< String, Object > | getValues (boolean deep) |
boolean | contains (String path) |
boolean | isSet (String path) |
String | getCurrentPath () |
String | getName () |
Configuration | getRoot () |
ConfigurationSection | getParent () |
void | addDefault (String path, Object value) |
ConfigurationSection | getDefaultSection () |
void | set (String path, Object value) |
Object | get (String path) |
Object | get (String path, Object def) |
ConfigurationSection | createSection (String path) |
ConfigurationSection | createSection (String path, Map<?,?> map) |
String | getString (String path) |
String | getString (String path, String def) |
boolean | isString (String path) |
int | getInt (String path) |
int | getInt (String path, int def) |
boolean | isInt (String path) |
boolean | getBoolean (String path) |
boolean | getBoolean (String path, boolean def) |
boolean | isBoolean (String path) |
double | getDouble (String path) |
double | getDouble (String path, double def) |
boolean | isDouble (String path) |
long | getLong (String path) |
long | getLong (String path, long def) |
boolean | isLong (String path) |
List<?> | getList (String path) |
List<?> | getList (String path, List<?> def) |
boolean | isList (String path) |
List< String > | getStringList (String path) |
List< Integer > | getIntegerList (String path) |
List< Boolean > | getBooleanList (String path) |
List< Double > | getDoubleList (String path) |
List< Float > | getFloatList (String path) |
List< Long > | getLongList (String path) |
List< Byte > | getByteList (String path) |
List< Character > | getCharacterList (String path) |
List< Short > | getShortList (String path) |
List< Map<?,?> > | getMapList (String path) |
Vector | getVector (String path) |
Vector | getVector (String path, Vector def) |
boolean | isVector (String path) |
OfflinePlayer | getOfflinePlayer (String path) |
OfflinePlayer | getOfflinePlayer (String path, OfflinePlayer def) |
boolean | isOfflinePlayer (String path) |
ItemStack | getItemStack (String path) |
ItemStack | getItemStack (String path, ItemStack def) |
boolean | isItemStack (String path) |
Color | getColor (String path) |
Color | getColor (String path, Color def) |
boolean | isColor (String path) |
ConfigurationSection | getConfigurationSection (String path) |
boolean | isConfigurationSection (String path) |
String | toString () |
Static Public Member Functions | |
static YamlConfiguration | loadConfiguration (File file) |
static YamlConfiguration | loadConfiguration (InputStream stream) |
static YamlConfiguration | loadConfiguration (Reader reader) |
![]() | |
static String | createPath (ConfigurationSection section, String key) |
static String | createPath (ConfigurationSection section, String key, ConfigurationSection relativeTo) |
Protected Member Functions | |
void | convertMapsToSections (Map<?,?> input, ConfigurationSection section) |
String | parseHeader (String input) |
String | buildHeader () |
![]() | |
abstract String | buildHeader () |
![]() | |
MemorySection () | |
MemorySection (ConfigurationSection parent, String path) | |
boolean | isPrimitiveWrapper (Object input) |
Object | getDefault (String path) |
void | mapChildrenKeys (Set< String > output, ConfigurationSection section, boolean deep) |
void | mapChildrenValues (Map< String, Object > output, ConfigurationSection section, boolean deep) |
Static Protected Attributes | |
static final String | COMMENT_PREFIX = "# " |
static final String | BLANK_CONFIG = "{}\n" |
Additional Inherited Members | |
![]() | |
static final boolean | UTF8_OVERRIDE |
static final boolean | UTF_BIG |
static final boolean | SYSTEM_UTF |
![]() | |
Configuration | defaults |
MemoryConfigurationOptions | options |
![]() | |
final Map< String, Object > | map = new LinkedHashMap<String, Object>() |
An implementation of Configuration which saves all files in Yaml. Note that this implementation is not synchronized.
Definition at line 25 of file YamlConfiguration.java.
|
static |
Creates a new YamlConfiguration, loading from the given file.
Any errors loading the Configuration will be logged and then ignored. If the specified input is not a valid config, a blank config will be returned.
The encoding used may follow the system dependent default.
file | Input file |
IllegalArgumentException | Thrown if file is null |
Definition at line 174 of file YamlConfiguration.java.
References org.bukkit.Bukkit.getLogger(), and org.bukkit.configuration.file.FileConfiguration.load().
Referenced by org.bukkit.plugin.java.JavaPlugin.reloadConfig().
|
static |
Creates a new YamlConfiguration, loading from the given stream.
Any errors loading the Configuration will be logged and then ignored. If the specified input is not a valid config, a blank config will be returned.
stream | Input stream |
IllegalArgumentException | Thrown if stream is null |
Definition at line 206 of file YamlConfiguration.java.
References org.bukkit.Bukkit.getLogger(), and org.bukkit.configuration.file.FileConfiguration.load().
|
static |
Creates a new YamlConfiguration, loading from the given reader.
Any errors loading the Configuration will be logged and then ignored. If the specified input is not a valid config, a blank config will be returned.
reader | input |
IllegalArgumentException | Thrown if stream is null |
Definition at line 234 of file YamlConfiguration.java.
References org.bukkit.Bukkit.getLogger(), and org.bukkit.configuration.file.FileConfiguration.load().
YamlConfigurationOptions org.bukkit.configuration.file.YamlConfiguration.options | ( | ) |
Gets the ConfigurationOptions for this Configuration.
All setters through this method are chainable.
Implements org.bukkit.configuration.Configuration.
Definition at line 153 of file YamlConfiguration.java.