Class Paths
java.lang.Object
me.hsgamer.hscore.config.path.impl.Paths
Utility to easily create
ConfigPath-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanConfigPathbooleanPath(String path, boolean def) Create a config pathstatic <T> CommentablePath<T>commented(@NotNull ConfigPath<T> path, @NotNull String... comments) Create a commentable pathstatic DoubleConfigPathdoublePath(String path, Double def) Create a config pathstatic FloatConfigPathCreate a config pathstatic IntegerConfigPathintegerPath(String path, Integer def) Create a config pathstatic LongConfigPathCreate a config pathstatic <T> SimpleConfigPath<T>simplePath(String path, T def) Create a config pathstatic <T> StickyConfigPath<T>sticky(@NotNull ConfigPath<T> path) Create a sticky config pathstatic StringConfigPathstringPath(String path, String def) Create a config path
-
Method Details
-
commented
public static <T> CommentablePath<T> commented(@NotNull @NotNull ConfigPath<T> path, @NotNull @NotNull String... comments) Create a commentable path- Type Parameters:
T- path's value type- Parameters:
path- the path to the valuecomments- the comment to create- Returns:
- the commentable path
-
sticky
Create a sticky config path- Type Parameters:
T- the type of the value- Parameters:
path- the path to the value- Returns:
- the sticky config path
-
booleanPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found- Returns:
- the config path
-
doublePath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found- Returns:
- the config path
-
floatPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found- Returns:
- the config path
-
integerPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found- Returns:
- the config path
-
longPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found- Returns:
- the config path
-
simplePath
Create a config path- Type Parameters:
T- the type of the value- Parameters:
path- the path to the valuedef- the default value if it's not found- Returns:
- the config path
-
stringPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found- Returns:
- the config path
-