content: package net.minecraft.server.management;
  
  import com.google.gson.JsonObject;
  import com.mojang.authlib.GameProfile;
  
  import java.io.File;
  
  public class UserListBans extends UserList<GameProfile, UserListBansEntry> {
      public UserListBans(File bansFile) {
          super(bansFile);
      }
  
      protected UserListEntry<GameProfile> createEntry(JsonObject entryData) {
          return new UserListBansEntry(entryData);
      }
  
      public boolean isBanned(GameProfile profile) {
          return this.hasEntry(profile);
      }
  
      public String[] getKeys() {
          String[] astring = new String[this.getValues().size()];
          int i = 0;
  
          for (UserListBansEntry userlistbansentry : this.getValues().values()) {
              astring[i++] = userlistbansentry.getValue().getName();
          }
  
          return astring;
      }
  
      protected String getObjectKey(GameProfile obj) {
          return obj.getId().toString();
      }
  
      public GameProfile isUsernameBanned(String username) {
          for (UserListBansEntry userlistbansentry : this.getValues().values()) {
              if (username.equalsIgnoreCase(userlistbansentry.getValue().getName())) {
                  return userlistbansentry.getValue();
              }
          }
  
          return null;
      }
  }
  