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>filesprivate final HashMap<String, ConfigurationSection>globalSectionMapprivate final HashMap<String, Object>globalSectionsprivate final ConcurrentHashMap<String, SectionParser>sectionParserspublic final static SectionManagerINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitloadParser(SectionParser sectionParser)用于加载节点解析器 final Unitreload()重载节点管理器 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()
获取所有节点解析器
-
-
-
-