FireworkEffect.java 文件源码

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

项目:Thermos-Bukkit 作者:
/**
 * @see ConfigurationSerializable
 */
public static ConfigurationSerializable deserialize(Map<String, Object> map) {
    Type type = Type.valueOf((String) map.get(TYPE));
    if (type == null) {
        throw new IllegalArgumentException(map.get(TYPE) + " is not a valid Type");
    }

    return builder()
        .flicker((Boolean) map.get(FLICKER))
        .trail((Boolean) map.get(TRAIL))
        .withColor((Iterable<?>) map.get(COLORS))
        .withFade((Iterable<?>) map.get(FADE_COLORS))
        .with(type)
        .build();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号