public class Configs extends Object
| Constructor and Description |
|---|
Configs() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
getConfigSectionValue(Object o)
Returns a
Map representative of the passed Object that represents
a section of a YAML file. |
static Map<String,Object> |
getConfigSectionValue(Object o,
boolean deep)
Returns a
Map representative of the passed Object that represents
a section of a YAML file. |
static JavaPlugin |
getPlugin(Class<?> clazz)
Returns the relevant
JavaPlugin that is specified by a
class-level PluginClass annotation if it is loaded, otherwise
null |
public static JavaPlugin getPlugin(Class<?> clazz)
JavaPlugin that is specified by a
class-level PluginClass annotation if it is loaded, otherwise
nullclazz - The Class that holds the AnnotationJavaPlugin, or null if not foundpublic static Map<String,Object> getConfigSectionValue(Object o)
Map representative of the passed Object that represents
a section of a YAML file. This method neglects the implementation of the
section (whether it be ConfigurationSection or just a
Map), and returns the appropriate value.o - The object to interpretMap representing the sectionpublic static Map<String,Object> getConfigSectionValue(Object o, boolean deep)
Map representative of the passed Object that represents
a section of a YAML file. This method neglects the implementation of the
section (whether it be ConfigurationSection or just a
Map), and returns the appropriate value.o - The object to interpretdeep - If an object is a ConfigurationSection, true to do a deep searchMap representing the sectionCopyright © 2017. All rights reserved.