dev.aurelium.auraskills.api.config.ConfigNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of auraskills-api Show documentation
Show all versions of auraskills-api Show documentation
API for AuraSkills, the ultra-versatile RPG skills plugin for Minecraft
package dev.aurelium.auraskills.api.config;
import org.jetbrains.annotations.Nullable;
import java.lang.reflect.Type;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;
/**
* An interface that copies the Configurate ConfigurationNode and is
* implemented by it under the hood. This is used in the API to allow
* AuraSkills to relocate Configurate packages while keeping API configuration
* functionality. All methods work exactly like ConfigurationNode from Configurate,
* though not all methods are available.
*/
public interface ConfigNode {
@Nullable Object key();
@Nullable ConfigNode parent();
ConfigNode node(Object... path);
ConfigNode node(Iterable> path);
boolean hasChild(Object... path);
boolean hasChild(Iterable> path);
boolean virtual();
boolean isNull();
boolean isList();
boolean isMap();
boolean empty();
List extends ConfigNode> childrenList();
Map