类 MittelConfig
java.lang.Object
io.github.lijinhong11.mittellib.configuration.MittelConfig
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclear()booleanbooleangetBoolean(@NotNull String path) booleangetBoolean(@NotNull String path, boolean def) @Nullable net.kyori.adventure.text.ComponentgetComponent(@NotNull String path) @Nullable net.kyori.adventure.text.ComponentgetComponent(@NotNull String path, @Nullable net.kyori.adventure.text.Component def) doubledouble<E extends Enum<E>>
E<E extends Enum<E>>
Efloatfloatintint@Nullable ItemStackgetItemStack(@NotNull String path) getKeys(boolean deep) longlong<T extends ReadWriteObject>
TgetRWObject(@NotNull String path, @NotNull Class<T> clazz) <T extends ReadWriteObject>
TgetRWObject(@NotNull String path, @NotNull Class<T> clazz, T def) @Nullable ConfigurationSectiongetSection(@NotNull String path) @NotNull ConfigurationSectiongetSectionOrCreate(@NotNull String path) @Nullable String@Nullable StringgetStringList(@NotNull String path) doublegetUnsignedDouble(String path) floatgetUnsignedFloat(String path) intgetUnsignedInt(String path) longgetUnsignedLong(String path) booleanstatic @NotNull MittelConfigoptions()voidreload()void@NotNull StringrequireString(@NotNull String path) voidsave()voidsetDefaults(@NotNull Configuration defaults)
-
构造器详细资料
-
MittelConfig
public MittelConfig() -
MittelConfig
-
-
方法详细资料
-
load
@NotNull public static @NotNull MittelConfig load(@NotNull @NotNull File file, boolean createIfMissing) -
reload
public void reload() -
save
public void save() -
contains
-
remove
-
clear
public void clear() -
getString
-
getString
-
getComponent
@Nullable public @Nullable net.kyori.adventure.text.Component getComponent(@NotNull @NotNull String path) -
getComponent
@Nullable public @Nullable net.kyori.adventure.text.Component getComponent(@NotNull @NotNull String path, @Nullable @Nullable net.kyori.adventure.text.Component def) -
requireString
-
getInt
-
getInt
-
getLong
-
getLong
-
getDouble
-
getDouble
-
getFloat
-
getFloat
-
getBoolean
-
getBoolean
-
getStringList
-
getUnsignedInt
-
getUnsignedLong
-
getUnsignedDouble
-
getUnsignedFloat
-
isSection
-
getSection
-
getSectionOrCreate
-
getKeys
-
getKeys
-
getEnum
-
getEnum
-
getItemStack
-
getRWObject
@Nullable public <T extends ReadWriteObject> T getRWObject(@NotNull @NotNull String path, @NotNull @NotNull Class<T> clazz) -
getRWObject
@Nullable public <T extends ReadWriteObject> T getRWObject(@NotNull @NotNull String path, @NotNull @NotNull Class<T> clazz, @Nullable T def) -
setDefaults
-
options
-