Java 类net.minecraft.server.ScoreboardTeam 实例源码

项目:CraftBukkit    文件:CraftScoreboard.java   
CraftScoreboard(Scoreboard board) {
    this.board = board;

    for (ScoreboardObjective objective : (Iterable<ScoreboardObjective>) board.getObjectives()) {
        new CraftObjective(this, objective); // It adds itself to map
    }
    for (ScoreboardTeam team : (Iterable<ScoreboardTeam>) board.getTeams()) {
        new CraftTeam(this, team); // It adds itself to map
    }
}
项目:Craftbukkit    文件:CraftScoreboard.java   
public ImmutableSet<Team> getTeams() {
    return ImmutableSet.copyOf(Iterables.transform((Collection<ScoreboardTeam>) this.board.getTeams(), new Function<ScoreboardTeam, Team>() {

        @Override
        public Team apply(ScoreboardTeam input) {
            return new CraftTeam(CraftScoreboard.this, input);
        }
    }));
}
项目:Almura-Server    文件:CraftScoreboard.java   
CraftScoreboard(Scoreboard board) {
    this.board = board;

    for (ScoreboardObjective objective : (Iterable<ScoreboardObjective>) board.getObjectives()) {
        new CraftObjective(this, objective); // It adds itself to map
    }
    for (ScoreboardTeam team : (Iterable<ScoreboardTeam>) board.getTeams()) {
        new CraftTeam(this, team); // It adds itself to map
    }
}
项目:Tweakkit-Server    文件:CraftScoreboard.java   
CraftScoreboard(Scoreboard board) {
    this.board = board;

    for (ScoreboardObjective objective : (Iterable<ScoreboardObjective>) board.getObjectives()) {
        new CraftObjective(this, objective); // It adds itself to map
    }
    for (ScoreboardTeam team : (Iterable<ScoreboardTeam>) board.getTeams()) {
        new CraftTeam(this, team); // It adds itself to map
    }
}
项目:SpigotSource    文件:CraftScoreboard.java   
public ImmutableSet<Team> getTeams() {
    return ImmutableSet.copyOf(Iterables.transform((Collection<ScoreboardTeam>) this.board.getTeams(), new Function<ScoreboardTeam, Team>() {

        @Override
        public Team apply(ScoreboardTeam input) {
            return new CraftTeam(CraftScoreboard.this, input);
        }
    }));
}
项目:Craft-city    文件:CraftScoreboard.java   
CraftScoreboard(Scoreboard board) {
    this.board = board;

    for (ScoreboardObjective objective : (Iterable<ScoreboardObjective>) board.getObjectives()) {
        new CraftObjective(this, objective); // It adds itself to map
    }
    for (ScoreboardTeam team : (Iterable<ScoreboardTeam>) board.getTeams()) {
        new CraftTeam(this, team); // It adds itself to map
    }
}
项目:CraftBukkit    文件:CraftScoreboard.java   
public Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException {
    Validate.notNull(player, "OfflinePlayer cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(player.getName());
    return team == null ? null : teams.get(team.getName());
}
项目:CraftBukkit    文件:CraftTeam.java   
CraftTeam(CraftScoreboard scoreboard, ScoreboardTeam team) {
    super(scoreboard);
    this.team = team;
    scoreboard.teams.put(team.getName(), this);
}
项目:Craftbukkit    文件:CraftScoreboard.java   
public Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException {
    Validate.notNull(player, "OfflinePlayer cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(player.getName());
    return team == null ? null : new CraftTeam(this, team);
}
项目:Craftbukkit    文件:CraftScoreboard.java   
public Team getEntryTeam(String entry) throws IllegalArgumentException {
    Validate.notNull(entry, "Entry cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(entry);
    return team == null ? null : new CraftTeam(this, team);
}
项目:Craftbukkit    文件:CraftScoreboard.java   
public Team getTeam(String teamName) throws IllegalArgumentException {
    Validate.notNull(teamName, "Team name cannot be null");

    ScoreboardTeam team = board.getTeam(teamName);
    return team == null ? null : new CraftTeam(this, team);
}
项目:Craftbukkit    文件:CraftTeam.java   
CraftTeam(CraftScoreboard scoreboard, ScoreboardTeam team) {
    super(scoreboard);
    this.team = team;
}
项目:Almura-Server    文件:CraftScoreboard.java   
public Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException {
    Validate.notNull(player, "OfflinePlayer cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(player.getName());
    return team == null ? null : teams.get(team.getName());
}
项目:Almura-Server    文件:CraftTeam.java   
CraftTeam(CraftScoreboard scoreboard, ScoreboardTeam team) {
    super(scoreboard);
    this.team = team;
    scoreboard.teams.put(team.getName(), this);
}
项目:Tweakkit-Server    文件:CraftScoreboard.java   
public Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException {
    Validate.notNull(player, "OfflinePlayer cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(player.getName());
    return team == null ? null : teams.get(team.getName());
}
项目:Tweakkit-Server    文件:CraftTeam.java   
CraftTeam(CraftScoreboard scoreboard, ScoreboardTeam team) {
    super(scoreboard);
    this.team = team;
    scoreboard.teams.put(team.getName(), this);
}
项目:SpigotSource    文件:CraftScoreboard.java   
public Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException {
    Validate.notNull(player, "OfflinePlayer cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(player.getName());
    return team == null ? null : new CraftTeam(this, team);
}
项目:SpigotSource    文件:CraftScoreboard.java   
public Team getEntryTeam(String entry) throws IllegalArgumentException {
    Validate.notNull(entry, "Entry cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(entry);
    return team == null ? null : new CraftTeam(this, team);
}
项目:SpigotSource    文件:CraftScoreboard.java   
public Team getTeam(String teamName) throws IllegalArgumentException {
    Validate.notNull(teamName, "Team name cannot be null");

    ScoreboardTeam team = board.getTeam(teamName);
    return team == null ? null : new CraftTeam(this, team);
}
项目:SpigotSource    文件:CraftTeam.java   
CraftTeam(CraftScoreboard scoreboard, ScoreboardTeam team) {
    super(scoreboard);
    this.team = team;
}
项目:Craft-city    文件:CraftScoreboard.java   
public Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException {
    Validate.notNull(player, "OfflinePlayer cannot be null");

    ScoreboardTeam team = board.getPlayerTeam(player.getName());
    return team == null ? null : teams.get(team.getName());
}
项目:Craft-city    文件:CraftTeam.java   
CraftTeam(CraftScoreboard scoreboard, ScoreboardTeam team) {
    super(scoreboard);
    this.team = team;
    scoreboard.teams.put(team.getName(), this);
}