Package pers.neige.neigeitems.manager
Object SectionManager
-
- All Implemented Interfaces:
public class SectionManager
全局节点 & 节点解析器管理器
-
-
Field Summary
Fields Modifier and Type Field Description private final ArrayList<File>
files
private final HashMap<String, ConfigurationSection>
globalSectionMap
private final HashMap<String, Object>
globalSections
private final ConcurrentHashMap<String, SectionParser>
sectionParsers
public final static SectionManager
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
loadParser(SectionParser sectionParser)
用于加载节点解析器 final Unit
reload()
重载节点管理器 final ArrayList<File>
getFiles()
获取全部全局节点文件 final HashMap<String, ConfigurationSection>
getGlobalSectionMap()
获取<文件名-该文件中的所有节点>对应map final HashMap<String, Object>
getGlobalSections()
获取<节点ID-节点>对应map final ConcurrentHashMap<String, SectionParser>
getSectionParsers()
获取所有节点解析器 -
-
Method Detail
-
loadParser
final Unit loadParser(SectionParser sectionParser)
用于加载节点解析器
- Parameters:
sectionParser
- 节点解析器
-
getGlobalSectionMap
final HashMap<String, ConfigurationSection> getGlobalSectionMap()
获取<文件名-该文件中的所有节点>对应map
-
getGlobalSections
final HashMap<String, Object> getGlobalSections()
获取<节点ID-节点>对应map
-
getSectionParsers
final ConcurrentHashMap<String, SectionParser> getSectionParsers()
获取所有节点解析器
-
-
-
-