Package pers.neige.neigeitems.manager
Object ConfigManager
-
- All Implemented Interfaces:
public class ConfigManager
配置文件管理器, 用于管理config.yml文件, 对其中缺少的配置项进行主动补全, 同时释放默认配置文件
-
-
Field Summary
Fields Modifier and Type Field Description private final FileConfiguration
config
private Boolean
debug
private Boolean
updateCheck
private Boolean
newDataFormat
private Long
comboInterval
private Boolean
removeNBTWhenGive
private String
language
private Boolean
forceSync
private Boolean
checkInventory
private Boolean
enableJsPapi
public final static ConfigManager
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Unit
saveResource()
加载默认配置文件 final Unit
reload()
重载配置管理器 final Unit
loadConfig()
final Unit
debug(String text)
config.yml 中 Main. final FileConfiguration
getConfig()
final Boolean
getDebug()
final Unit
setDebug(Boolean debug)
final Boolean
getUpdateCheck()
final Unit
setUpdateCheck(Boolean updateCheck)
final Boolean
getNewDataFormat()
final Unit
setNewDataFormat(Boolean newDataFormat)
final Long
getComboInterval()
final Unit
setComboInterval(Long comboInterval)
final Boolean
getRemoveNBTWhenGive()
final Unit
setRemoveNBTWhenGive(Boolean removeNBTWhenGive)
final String
getLanguage()
final Unit
setLanguage(String language)
final Boolean
getForceSync()
final Unit
setForceSync(Boolean forceSync)
final Boolean
getCheckInventory()
final Unit
setCheckInventory(Boolean checkInventory)
final Boolean
getEnableJsPapi()
final Unit
setEnableJsPapi(Boolean enableJsPapi)
-
-
Method Detail
-
saveResource
final static Unit saveResource()
加载默认配置文件
-
loadConfig
final Unit loadConfig()
-
getConfig
final FileConfiguration getConfig()
-
getUpdateCheck
final Boolean getUpdateCheck()
-
setUpdateCheck
final Unit setUpdateCheck(Boolean updateCheck)
-
getNewDataFormat
final Boolean getNewDataFormat()
-
setNewDataFormat
final Unit setNewDataFormat(Boolean newDataFormat)
-
getComboInterval
final Long getComboInterval()
-
setComboInterval
final Unit setComboInterval(Long comboInterval)
-
getRemoveNBTWhenGive
final Boolean getRemoveNBTWhenGive()
-
setRemoveNBTWhenGive
final Unit setRemoveNBTWhenGive(Boolean removeNBTWhenGive)
-
getLanguage
final String getLanguage()
-
setLanguage
final Unit setLanguage(String language)
-
getForceSync
final Boolean getForceSync()
-
setForceSync
final Unit setForceSync(Boolean forceSync)
-
getCheckInventory
final Boolean getCheckInventory()
-
setCheckInventory
final Unit setCheckInventory(Boolean checkInventory)
-
getEnableJsPapi
final Boolean getEnableJsPapi()
-
setEnableJsPapi
final Unit setEnableJsPapi(Boolean enableJsPapi)
-
-
-
-