Class AbstractConfig

java.lang.Object
net.pl3x.map.core.configuration.AbstractConfig
Direct Known Subclasses:
ColorsConfig, Config, Lang, PlayersLayerConfig, SpawnLayerConfig, WorldBorderLayerConfig, WorldConfig

public abstract class AbstractConfig extends Object
  • Constructor Details

    • AbstractConfig

      public AbstractConfig()
  • Method Details

    • getConfig

      @NotNull public @NotNull org.simpleyaml.configuration.file.YamlFile getConfig()
    • reload

      protected void reload(@NotNull @NotNull Path path, @NotNull @NotNull Class<? extends @NotNull AbstractConfig> clazz)
    • save

      protected void save()
    • getClassObject

      @Nullable protected @Nullable Object getClassObject()
    • getValue

      @Nullable protected @Nullable Object getValue(@NotNull @NotNull String path, @Nullable @Nullable Object def)
    • setComment

      protected void setComment(@NotNull @NotNull String path, @Nullable @Nullable String comment)
    • get

      @Nullable protected @Nullable Object get(@NotNull @NotNull String path, @Nullable @Nullable Object def)
    • get

      @Nullable protected @Nullable Object get(@NotNull @NotNull String path)
    • addToMap

      @NotNull protected @NotNull Object addToMap(@NotNull @NotNull String rawValue)
    • set

      protected void set(@NotNull @NotNull String path, @Nullable @Nullable Object value)