类 MittelConfig

java.lang.Object
io.github.lijinhong11.mittellib.configuration.MittelConfig

public class MittelConfig extends Object
  • 构造器详细资料

    • MittelConfig

      public MittelConfig()
    • MittelConfig

      public MittelConfig(YamlConfiguration configuration)
  • 方法详细资料

    • load

      @NotNull public static @NotNull MittelConfig load(@NotNull @NotNull File file, boolean createIfMissing)
    • reload

      public void reload()
    • save

      public void save()
    • contains

      public boolean contains(@NotNull @NotNull String path)
    • remove

      public void remove(@NotNull @NotNull String path)
    • clear

      public void clear()
    • getString

      @Nullable public @Nullable String getString(@NotNull @NotNull String path)
    • getString

      @Nullable public @Nullable String getString(@NotNull @NotNull String path, @Nullable @Nullable String def)
    • 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

      @NotNull public @NotNull String requireString(@NotNull @NotNull String path)
    • getInt

      public int getInt(@NotNull @NotNull String path)
    • getInt

      public int getInt(@NotNull @NotNull String path, int def)
    • getLong

      public long getLong(@NotNull @NotNull String path)
    • getLong

      public long getLong(@NotNull @NotNull String path, long def)
    • getDouble

      public double getDouble(@NotNull @NotNull String path)
    • getDouble

      public double getDouble(@NotNull @NotNull String path, double def)
    • getFloat

      public float getFloat(@NotNull @NotNull String path)
    • getFloat

      public float getFloat(@NotNull @NotNull String path, float def)
    • getBoolean

      public boolean getBoolean(@NotNull @NotNull String path)
    • getBoolean

      public boolean getBoolean(@NotNull @NotNull String path, boolean def)
    • getStringList

      @NotNull public @NotNull List<String> getStringList(@NotNull @NotNull String path)
    • getUnsignedInt

      public int getUnsignedInt(String path)
    • getUnsignedLong

      public long getUnsignedLong(String path)
    • getUnsignedDouble

      public double getUnsignedDouble(String path)
    • getUnsignedFloat

      public float getUnsignedFloat(String path)
    • isSection

      public boolean isSection(@NotNull @NotNull String path)
    • getSection

      @Nullable public @Nullable ConfigurationSection getSection(@NotNull @NotNull String path)
    • getSectionOrCreate

      @NotNull public @NotNull ConfigurationSection getSectionOrCreate(@NotNull @NotNull String path)
    • getKeys

      public Set<String> getKeys(boolean deep)
    • getKeys

      public Set<String> getKeys(@NotNull @NotNull String path, boolean deep)
    • getEnum

      @Nullable public <E extends Enum<E>> E getEnum(@NotNull @NotNull String path, @NotNull @NotNull Class<E> clazz)
    • getEnum

      @NotNull public <E extends Enum<E>> E getEnum(@NotNull @NotNull String path, @NotNull @NotNull Class<E> clazz, @NotNull E def)
    • getItemStack

      @Nullable public @Nullable ItemStack getItemStack(@NotNull @NotNull String path)
    • 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

      public void setDefaults(@NotNull @NotNull Configuration defaults)
    • options

      public YamlConfigurationOptions options()