InventoryEntryConfig.java 文件源码

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

项目:HeavySpleef 作者:
@Override
public final void inflateUnsafe(Configuration config, Object[] args) throws ParseException {
    ConfigurationSection layoutSection = config.getConfigurationSection("layout");
    String title;
    List<String> lore;

    if (layoutSection != null) {
        title = layoutSection.getString("title", DEFAULT_TITLE);
        lore = layoutSection.getStringList("lore");

        if (lore == null || lore.isEmpty()) {
            lore = DEFAULT_LORE;
        }
    } else {
        title = DEFAULT_TITLE;
        lore = DEFAULT_LORE;
    }

    layout = new InventoryEntryLayout(title, lore);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号