LobbyMetaEntity(Map<String, Object> items) throws Exception {
super();
if (items.get("spawnpoint") != null)
this.lobbySpawn = new SLocation(((MemorySection) items.get("spawnpoint")).getValues(true));
this.gameTime = (int) items.get("gameduration");
this.countdown = (int) items.get("lobbyduration");
for (int i = 0; i < 10000 && items.containsKey("signs.join." + i); i++)
this.signLocations.add(new SLocation(((MemorySection) items.get("signs.join." + i)).getValues(true)));
for (int i = 0; i < 10000 && items.containsKey("signs.leave." + i); i++)
this.leaveSignLocations.add(new SLocation(((MemorySection) items.get("signs.leave." + i)).getValues(true)));
for (int i = 0; i < 10000 && items.containsKey("signs.red." + i); i++)
this.redTeamSignLocations.add(new SLocation(((MemorySection) items.get("signs.red." + i)).getValues(true)));
for (int i = 0; i < 10000 && items.containsKey("signs.blue." + i); i++)
this.blueTeamSignLocations.add(new SLocation(((MemorySection) items.get("signs.blue." + i)).getValues(true)));
this.gameTitleMessage = (String) items.get("messages.countdown-title");
this.gameSubTitleMessage = (String) items.get("messages.countdown-subtitle");
}
LobbyMetaEntity.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:BlockBall
作者:
评论列表
文章目录