Added Config#getSubsections

This commit is contained in:
Auxilor
2021-12-03 15:49:00 +00:00
parent 2d074bc186
commit 28cdb65176
2 changed files with 43 additions and 0 deletions

View File

@@ -524,6 +524,25 @@ public interface Config extends Cloneable {
@Nullable
List<Double> getDoublesOrNull(@NotNull String path);
/**
* Get a list of subsections from config.
*
* @param path The key to fetch the value from.
* @return The found value, or a blank {@link java.util.ArrayList} if not found.
*/
@NotNull
List<Config> getSubsections(@NotNull String path);
/**
* Get a list of subsections from config.
*
* @param path The key to fetch the value from.
* @return The found value, or null if not found.
*/
@Nullable
List<Config> getSubsectionsOrNull(@NotNull String path);
/**
* Clone the config.
*