FileConfig

class FileConfig(fileName: String) : YamlConfiguration(source)

Represents a configuration file for storing settings in YAML format.

This class extends YamlConfiguration and provides additional functionality for handling file operations and loading/saving configuration data.

Constructors

Link copied to clipboard
constructor(fileName: String)

Functions

Link copied to clipboard
open override fun addDefault(@NotNull p0: @NotNull String, @Nullable p1: @Nullable Any?)
Link copied to clipboard
open override fun addDefaults(@NotNull p0: @NotNull MutableMap<String, Any>)
open override fun addDefaults(@NotNull p0: @NotNull Configuration)
Link copied to clipboard
open operator override fun contains(@NotNull p0: @NotNull String): Boolean
open override fun contains(@NotNull p0: @NotNull String, p1: Boolean): Boolean
Link copied to clipboard
@NotNull
open override fun createSection(@NotNull p0: @NotNull String): @NotNull ConfigurationSection
@NotNull
open override fun createSection(@NotNull p0: @NotNull String, @NotNull p1: @NotNull MutableMap<*, *>): @NotNull ConfigurationSection
Link copied to clipboard
@Nullable
open operator override fun get(@NotNull p0: @NotNull String): @Nullable Any?
@Contract(value = "_, !null -> !null")
@Nullable
open operator override fun get(@NotNull p0: @NotNull String, @Nullable p1: @Nullable Any?): @Nullable Any?
Link copied to clipboard
open override fun getBoolean(@NotNull p0: @NotNull String): Boolean
open override fun getBoolean(@NotNull p0: @NotNull String, p1: Boolean): Boolean
Link copied to clipboard
@NotNull
open override fun getBooleanList(@NotNull p0: @NotNull String): @NotNull MutableList<Boolean>
Link copied to clipboard
@NotNull
open override fun getByteList(@NotNull p0: @NotNull String): @NotNull MutableList<Byte>
Link copied to clipboard
@NotNull
open override fun getCharacterList(@NotNull p0: @NotNull String): @NotNull MutableList<Char>
Link copied to clipboard
@Nullable
open override fun getColor(@NotNull p0: @NotNull String): @Nullable Color?
@Contract(value = "_, !null -> !null")
@Nullable
open override fun getColor(@NotNull p0: @NotNull String, @Nullable p1: @Nullable Color?): @Nullable Color?
Link copied to clipboard
@NotNull
open override fun getComments(@NotNull p0: @NotNull String): @NotNull MutableList<String>
Link copied to clipboard
@Nullable
open fun <C : Component> getComponent(@NotNull p0: @NotNull String, p1: @NotNull ComponentDecoder<in String, C>): @Nullable C?
@Contract(value = "_, _, !null -> !null")
@Nullable
open fun <C : Component> getComponent(@NotNull p0: @NotNull String, p1: @NotNull ComponentDecoder<in String, C>, @Nullable p2: @Nullable C?): @Nullable C?
Link copied to clipboard
@Nullable
open override fun getConfigurationSection(@NotNull p0: @NotNull String): @Nullable ConfigurationSection?
Link copied to clipboard
@NotNull
open override fun getCurrentPath(): @NotNull String
Link copied to clipboard
@Nullable
open override fun getDefaults(): @Nullable Configuration?
Link copied to clipboard
@Nullable
open override fun getDefaultSection(): @Nullable ConfigurationSection?
Link copied to clipboard
open override fun getDouble(@NotNull p0: @NotNull String): Double
open override fun getDouble(@NotNull p0: @NotNull String, p1: Double): Double
Link copied to clipboard
@NotNull
open override fun getDoubleList(@NotNull p0: @NotNull String): @NotNull MutableList<Double>
Link copied to clipboard
@NotNull
open override fun getFloatList(@NotNull p0: @NotNull String): @NotNull MutableList<Float>
Link copied to clipboard
@NotNull
open override fun getInlineComments(@NotNull p0: @NotNull String): @NotNull MutableList<String>
Link copied to clipboard
open override fun getInt(@NotNull p0: @NotNull String): Int
open override fun getInt(@NotNull p0: @NotNull String, p1: Int): Int
Link copied to clipboard
@NotNull
open override fun getIntegerList(@NotNull p0: @NotNull String): @NotNull MutableList<Int>
Link copied to clipboard
@Nullable
open override fun getItemStack(@NotNull p0: @NotNull String): @Nullable ItemStack?
@Contract(value = "_, !null -> !null")
@Nullable
open override fun getItemStack(@NotNull p0: @NotNull String, @Nullable p1: @Nullable ItemStack?): @Nullable ItemStack?
Link copied to clipboard
@NotNull
open override fun getKeys(p0: Boolean): @NotNull MutableSet<String>
Link copied to clipboard
@Nullable
open override fun getList(@NotNull p0: @NotNull String): @Nullable MutableList<*>?
@Contract(value = "_, !null -> !null")
@Nullable
open override fun getList(@NotNull p0: @NotNull String, @Nullable p1: @Nullable MutableList<*>?): @Nullable MutableList<*>?
Link copied to clipboard
@Nullable
open override fun getLocation(@NotNull p0: @NotNull String): @Nullable Location?
@Contract(value = "_, !null -> !null")
@Nullable
open override fun getLocation(@NotNull p0: @NotNull String, @Nullable p1: @Nullable Location?): @Nullable Location?
Link copied to clipboard
open override fun getLong(@NotNull p0: @NotNull String): Long
open override fun getLong(@NotNull p0: @NotNull String, p1: Long): Long
Link copied to clipboard
@NotNull
open override fun getLongList(@NotNull p0: @NotNull String): @NotNull MutableList<Long>
Link copied to clipboard
@NotNull
open override fun getMapList(@NotNull p0: @NotNull String): @NotNull MutableList<MutableMap<*, *>>
Link copied to clipboard
@NotNull
open override fun getName(): @NotNull String
Link copied to clipboard
@Nullable
open override fun <T : Any> getObject(@NotNull p0: @NotNull String, @NotNull p1: @NotNull Class<T>): @Nullable T?
@Contract(value = "_, _, !null -> !null")
@Nullable
open override fun <T : Any> getObject(@NotNull p0: @NotNull String, @NotNull p1: @NotNull Class<T>, @Nullable p2: @Nullable T?): @Nullable T?
Link copied to clipboard
@Nullable
open override fun getOfflinePlayer(@NotNull p0: @NotNull String): @Nullable OfflinePlayer?
@Contract(value = "_, !null -> !null")
@Nullable
open override fun getOfflinePlayer(@NotNull p0: @NotNull String, @Nullable p1: @Nullable OfflinePlayer?): @Nullable OfflinePlayer?
Link copied to clipboard
@Nullable
open override fun getParent(): @Nullable ConfigurationSection?
Link copied to clipboard
open fun getRichMessage(@NotNull p0: @NotNull String): @Nullable Component?
@Contract(value = "_, !null -> !null")
open fun getRichMessage(@NotNull p0: @NotNull String, p1: @Nullable Component?): @Nullable Component?
Link copied to clipboard
@Nullable
open override fun getRoot(): @Nullable Configuration?
Link copied to clipboard
@Nullable
open override fun <T : ConfigurationSerializable> getSerializable(@NotNull p0: @NotNull String, @NotNull p1: @NotNull Class<T>): @Nullable T?
@Contract(value = "_, _, !null -> !null")
@Nullable
open override fun <T : ConfigurationSerializable> getSerializable(@NotNull p0: @NotNull String, @NotNull p1: @NotNull Class<T>, @Nullable p2: @Nullable T?): @Nullable T?
Link copied to clipboard
@NotNull
open override fun getShortList(@NotNull p0: @NotNull String): @NotNull MutableList<Short>
Link copied to clipboard
@Nullable
open override fun getString(@NotNull p0: @NotNull String): @Nullable String?
@Contract(value = "_, !null -> !null")
@Nullable
open override fun getString(@NotNull p0: @NotNull String, @Nullable p1: @Nullable String?): @Nullable String?
Link copied to clipboard
@NotNull
open override fun getStringList(@NotNull p0: @NotNull String): @NotNull MutableList<String>
Link copied to clipboard
@NotNull
open override fun getValues(p0: Boolean): @NotNull MutableMap<String, Any>
Link copied to clipboard
@Nullable
open override fun getVector(@NotNull p0: @NotNull String): @Nullable Vector?
@Contract(value = "_, !null -> !null")
@Nullable
open override fun getVector(@NotNull p0: @NotNull String, @Nullable p1: @Nullable Vector?): @Nullable Vector?
Link copied to clipboard
open override fun isBoolean(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isColor(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isConfigurationSection(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isDouble(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isInt(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isItemStack(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isList(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isLocation(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isLong(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isOfflinePlayer(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isSet(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isString(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open override fun isVector(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
open fun load(@NotNull p0: @NotNull File)
open fun load(@NotNull p0: @NotNull Reader)
open fun load(@NotNull p0: @NotNull String)
Link copied to clipboard
open override fun loadFromString(@NotNull p0: @NotNull String)
Link copied to clipboard
@NotNull
open override fun options(): @NotNull YamlConfigurationOptions
Link copied to clipboard
open fun save(@NotNull p0: @NotNull File)
open fun save(@NotNull p0: @NotNull String)
Link copied to clipboard
Link copied to clipboard
@NotNull
open override fun saveToString(): @NotNull String
Link copied to clipboard
open operator override fun set(@NotNull p0: @NotNull String, @Nullable p1: @Nullable Any?)
Link copied to clipboard
open override fun setComments(@NotNull p0: @NotNull String, @Nullable p1: @Nullable MutableList<String>?)
Link copied to clipboard
open fun <C : Component> setComponent(@NotNull p0: @NotNull String, p1: @NotNull ComponentEncoder<C, String>, @Nullable p2: @Nullable C?)
Link copied to clipboard
open override fun setDefaults(@NotNull p0: @NotNull Configuration)
Link copied to clipboard
open override fun setInlineComments(@NotNull p0: @NotNull String, @Nullable p1: @Nullable MutableList<String>?)
Link copied to clipboard
open fun setRichMessage(@NotNull p0: @NotNull String, p1: @Nullable Component?)
Link copied to clipboard
open override fun toString(): String