EquipmentConfiguration.java 文件源码

java
阅读 53 收藏 0 点赞 0 评论 0

项目:QuestManager 作者:
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");
    }


}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号