SpawnItem.java 文件源码

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

项目:BlockBall 作者:
SpawnItem(Map<String, Object> items) throws Exception {
    super();
    this.id = (int) items.get("id");
    this.damage = (int) items.get("damage");
    this.owner = (String) items.get("owner");
    this.displayName = (String) items.get("name");
    this.spawnrate = Spawnrate.getSpawnrateFromName((String) items.get("rate"));
    for (final PotionEffectType potionEffectType : PotionEffectType.values()) {
        if (potionEffectType != null && items.containsKey("potioneffects." + potionEffectType.getId())) {
            this.potioneffectList.put(potionEffectType.getId(), new FastPotioneffect(((MemorySection) items.get("potioneffects." + potionEffectType.getId())).getValues(true)));
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号