BallMetaEntity(Map<String, Object> items) throws Exception {
super();
this.ballSkin = (String) items.get("skin");
this.rotating = !(boolean) items.get("rotating");
this.horizontalStrength = (double) items.get("horizontal-strength");
this.verticalStrength = (double) items.get("vertical-strength");
this.ballSpawnTime = (int) items.get("spawnduration");
this.genericHitParticle = new SParticle(((MemorySection) items.get("particles.generic-hit")).getValues(true));
this.playerTeamRedHitParticle = new SParticle(((MemorySection) items.get("particles.red-hit")).getValues(true));
this.playerTeamBlueHitParticle = new SParticle(((MemorySection) items.get("particles.blue-hit")).getValues(true));
this.ballSpawnParticle = new SParticle(((MemorySection) items.get("particles.spawn")).getValues(true));
this.ballGoalParticle = new SParticle(((MemorySection) items.get("particles.goal")).getValues(true));
this.genericHitSound = new FastSound(((MemorySection) items.get("sounds.generic-hit")).getValues(true));
this.ballSpawnSound = new FastSound(((MemorySection) items.get("sounds.spawn")).getValues(true));
this.ballGoalSound = new FastSound(((MemorySection) items.get("sounds.goal")).getValues(true));
}
BallMetaEntity.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:BlockBall
作者:
评论列表
文章目录