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

项目:DiffUtils    文件:CraftServer_1710.java   
@Override
public Set<OfflinePlayer> getBannedPlayers() {
    Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getProfileBans().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:DiffUtils    文件:CraftServer_1710.java   
@Override
public Set<OfflinePlayer> getWhitelistedPlayers() {
    Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getWhitelist().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:DiffUtils    文件:CraftServer_1710.java   
@Override
public Set<OfflinePlayer> getOperators() {
    Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getOPs().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:CraftBukkit    文件:CraftProfileBanList.java   
@Override
public Set<org.bukkit.BanEntry> getBanEntries() {
    ImmutableSet.Builder<org.bukkit.BanEntry> builder = ImmutableSet.builder();
    for (JsonListEntry entry : list.getValues()) {
        GameProfile profile = (GameProfile) entry.getKey();
        builder.add(new CraftProfileBanEntry(profile, (GameProfileBanEntry) entry, list));
    }

    return builder.build();
}
项目:CraftBukkit    文件:CraftServer.java   
@Override
public Set<OfflinePlayer> getBannedPlayers() {
    Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getProfileBans().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:CraftBukkit    文件:CraftServer.java   
@Override
public Set<OfflinePlayer> getWhitelistedPlayers() {
    Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getWhitelist().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:CraftBukkit    文件:CraftServer.java   
@Override
public Set<OfflinePlayer> getOperators() {
    Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getOPs().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:Craftbukkit    文件:CraftProfileBanList.java   
@Override
public Set<org.bukkit.BanEntry> getBanEntries() {
    ImmutableSet.Builder<org.bukkit.BanEntry> builder = ImmutableSet.builder();

    for (JsonListEntry entry : list.getValues()) {
        GameProfile profile = (GameProfile) entry.getKey();
        builder.add(new CraftProfileBanEntry(profile, (GameProfileBanEntry) entry, list));
    }

    return builder.build();
}
项目:Tweakkit-Server    文件:CraftProfileBanList.java   
@Override
public Set<org.bukkit.BanEntry> getBanEntries() {
    ImmutableSet.Builder<org.bukkit.BanEntry> builder = ImmutableSet.builder();
    for (JsonListEntry entry : list.getValues()) {
        GameProfile profile = (GameProfile) entry.getKey();
        builder.add(new CraftProfileBanEntry(profile, (GameProfileBanEntry) entry, list));
    }

    return builder.build();
}
项目:Tweakkit-Server    文件:CraftServer.java   
@Override
public Set<OfflinePlayer> getBannedPlayers() {
    Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getProfileBans().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:Tweakkit-Server    文件:CraftServer.java   
@Override
public Set<OfflinePlayer> getWhitelistedPlayers() {
    Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getWhitelist().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:Tweakkit-Server    文件:CraftServer.java   
@Override
public Set<OfflinePlayer> getOperators() {
    Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();

    for (JsonListEntry entry : playerList.getOPs().getValues()) {
        result.add(getOfflinePlayer((GameProfile) entry.getKey()));
    }

    return result;
}
项目:SpigotSource    文件:CraftProfileBanList.java   
@Override
public Set<org.bukkit.BanEntry> getBanEntries() {
    ImmutableSet.Builder<org.bukkit.BanEntry> builder = ImmutableSet.builder();

    for (JsonListEntry entry : list.getValues()) {
        GameProfile profile = (GameProfile) entry.getKey();
        builder.add(new CraftProfileBanEntry(profile, (GameProfileBanEntry) entry, list));
    }

    return builder.build();
}