public void load(ConfigurationSection config) throws InvalidConfigurationException {
if (!config.contains("type") || !config.getString("type").equals("ecnf")) {
throw new InvalidConfigurationException();
}
head = config.getItemStack("head");
chest = config.getItemStack("chest");
legs = config.getItemStack("legs");
boots = config.getItemStack("boots");
if (config.contains("held")) {
heldMain = config.getItemStack("held");
heldOff = null;
} else {
heldMain = config.getItemStack("main");
heldOff = config.getItemStack("offhand");
}
}
EquipmentConfiguration.java 文件源码
java
阅读 53
收藏 0
点赞 0
评论 0
项目:QuestManager
作者:
评论列表
文章目录