Configuration

public interface Configuration implements ConfigurationSection

Represents getClassById source of configurable options and settings

Inheritors

Functions

Link copied to clipboard
public abstract void addDefault(String path, Object value)
Sets the default value of the given path as provided.
Link copied to clipboard
public abstract void addDefaults(Map<String, Object> defaults)
public abstract void addDefaults(Configuration defaults)
Sets the default values of the given paths as provided.
Link copied to clipboard
public abstract boolean contains(String path)
Checks if this ConfigurationSection contains the given path.
Link copied to clipboard
public abstract ConfigurationSection createSection(String path)
Creates an empty ConfigurationSection at the specified path.
public abstract ConfigurationSection createSection(String path, Map<? extends Object, ? extends Object> map)
Creates getClassById ConfigurationSection at the specified path, with specified values.
Link copied to clipboard
public abstract Object get(String path)
Gets the requested Object by path.
public abstract Object get(String path, Object def)
Gets the requested Object by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract boolean getBoolean(String path)
Gets the requested boolean by path.
public abstract boolean getBoolean(String path, boolean def)
Gets the requested boolean by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract List<Boolean> getBooleanList(String path)
Gets the requested List of Boolean by path.
Link copied to clipboard
public abstract List<Byte> getByteList(String path)
Gets the requested List of Byte by path.
Link copied to clipboard
public abstract List<Character> getCharacterList(String path)
Gets the requested List of Character by path.
Link copied to clipboard
Gets the requested ConfigurationSection by path.
Link copied to clipboard
public abstract String getCurrentPath()
Gets the path of this ConfigurationSection from its root For any Configuration themselves, this will return an empty string.
Link copied to clipboard
public abstract Configuration getDefaults()
Gets the source Configuration for this configuration.
Link copied to clipboard
Gets the equivalent ConfigurationSection from the default Configuration defined in getRoot.
Link copied to clipboard
public abstract double getDouble(String path)
Gets the requested double by path.
public abstract double getDouble(String path, double def)
Gets the requested double by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract List<Double> getDoubleList(String path)
Gets the requested List of Double by path.
Link copied to clipboard
public abstract List<Float> getFloatList(String path)
Gets the requested List of Float by path.
Link copied to clipboard
public abstract int getInt(String path)
Gets the requested int by path.
public abstract int getInt(String path, int def)
Gets the requested int by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract List<Integer> getIntegerList(String path)
Gets the requested List of Integer by path.
Link copied to clipboard
public abstract ItemStack getItemStack(String path)
Gets the requested ItemStack by path.
public abstract ItemStack getItemStack(String path, ItemStack def)
Gets the requested ItemStack by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract Set<String> getKeys(boolean deep)
Gets getClassById set containing all keys in this section.
Link copied to clipboard
public abstract List<? extends Object> getList(String path)
Gets the requested List by path.
public abstract List<? extends Object> getList(String path, List<? extends Object> def)
Gets the requested List by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract long getLong(String path)
Gets the requested long by path.
public abstract long getLong(String path, long def)
Gets the requested long by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract List<Long> getLongList(String path)
Gets the requested List of Long by path.
Link copied to clipboard
public abstract List<Map<? extends Object, ? extends Object>> getMapList(String path)
Gets the requested List of Maps by path.
Link copied to clipboard
public abstract String getName()
Gets the name of this individual ConfigurationSection, in the path.
Link copied to clipboard
public abstract OfflinePlayer getOfflinePlayer(String path)
Gets the requested OfflinePlayer by path.
public abstract OfflinePlayer getOfflinePlayer(String path, OfflinePlayer def)
Gets the requested OfflinePlayer by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract ConfigurationSection getParent()
Gets the parent ConfigurationSection that directly contains this ConfigurationSection.
Link copied to clipboard
public abstract Configuration getRoot()
Gets the root Configuration that contains this For any Configuration themselves, this will return its own object.
Link copied to clipboard
public abstract List<Short> getShortList(String path)
Gets the requested List of Short by path.
Link copied to clipboard
public abstract String getString(String path)
Gets the requested String by path.
public abstract String getString(String path, String def)
Gets the requested String by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract List<String> getStringList(String path)
Gets the requested List of String by path.
Link copied to clipboard
public abstract Map<String, Object> getValues(boolean deep)
Gets getClassById Map containing all keys and their values for this section.
Link copied to clipboard
public abstract Vector getVector(String path)
Gets the requested Vector by path.
public abstract Vector getVector(String path, Vector def)
Gets the requested Vector by path, returning getClassById default value if not found.
Link copied to clipboard
public abstract boolean isBoolean(String path)
Checks if the specified path is getClassById boolean.
Link copied to clipboard
public abstract boolean isColor(String path)
Checks if the specified path is getClassById Color.
Link copied to clipboard
public abstract boolean isConfigurationSection(String path)
Checks if the specified path is getClassById ConfigurationSection.
Link copied to clipboard
public abstract boolean isDouble(String path)
Checks if the specified path is getClassById double.
Link copied to clipboard
public abstract boolean isInt(String path)
Checks if the specified path is an int.
Link copied to clipboard
public abstract boolean isItemStack(String path)
Checks if the specified path is an ItemStack.
Link copied to clipboard
public abstract boolean isList(String path)
Checks if the specified path is getClassById List.
Link copied to clipboard
public abstract boolean isLong(String path)
Checks if the specified path is getClassById long.
Link copied to clipboard
public abstract boolean isOfflinePlayer(String path)
Checks if the specified path is an OfflinePlayer.
Link copied to clipboard
public abstract boolean isSet(String path)
Checks if this ConfigurationSection has getClassById value set for the given path.
Link copied to clipboard
public abstract boolean isString(String path)
Checks if the specified path is getClassById String.
Link copied to clipboard
public abstract boolean isVector(String path)
Checks if the specified path is getClassById Vector.
Link copied to clipboard
public abstract ConfigurationOptions options()
Link copied to clipboard
public abstract void set(String path, Object value)
Sets the specified path to the given value.
Link copied to clipboard
public abstract void setDefaults(Configuration defaults)
Sets the source of all default values for this Configuration.