public final class MasterServerFilter extends Object
A Master Server Filter Utility class
Modifier and Type | Method and Description |
---|---|
MasterServerFilter |
allServers()
A filter to return all available servers.
|
MasterServerFilter |
appId(Integer appId)
Servers that are running game [appid]
|
static MasterServerFilter |
create()
A factory method to create a new
MasterServerFilter instance |
MasterServerFilter |
dedicated(Boolean value)
Servers running dedicated
|
MasterServerFilter |
gamedata(String... tags)
Servers with ALL of the given tag(s) in their 'hidden' tags (e.g.
|
MasterServerFilter |
gamedataOr(String... tags)
Servers with ANY of the given tag(s) in their 'hidden' tags (e.g.
|
MasterServerFilter |
gamedir(String value)
Servers running the specified modification (ex.
|
MasterServerFilter |
gametypes(String... tags)
Servers with all of the given tag(s) in sv_tags
|
MasterServerFilter |
hasNoPlayers(Boolean value)
Servers that are empty
|
MasterServerFilter |
hasServerIp(String ipPort)
Return only servers on the specified IP address (port supported and optional)
|
MasterServerFilter |
hasVersion(String version)
Servers running version [version]
|
MasterServerFilter |
isEmpty(Boolean value)
Servers that are not empty
|
MasterServerFilter |
isFull(Boolean value)
Servers that are not full
|
MasterServerFilter |
isLinuxServer(Boolean value)
Servers running on a Linux platform
|
MasterServerFilter |
isPasswordProtected(Boolean value)
Filter for password protected servers
|
MasterServerFilter |
isSecure(Boolean value)
Servers using anti-cheat technology (VAC, but potentially others as well)
|
MasterServerFilter |
isSpecProxy(Boolean value)
Servers that are spectator proxies
|
MasterServerFilter |
isWhitelisted(Boolean value)
Servers that are whitelisted
|
MasterServerFilter |
mapName(String value)
Servers running the specified map (ex.
|
MasterServerFilter |
nand()
A special filter, specifies that servers matching all of the following [x] conditions should not be
returned
|
MasterServerFilter |
napp(Integer appId)
Servers that are NOT running game [appid] (This was introduced to block Left 4 Dead games from the Steam
Server Browser)
|
MasterServerFilter |
nor()
A special filter, specifies that servers matching any of the following [x] conditions should not be
returned
|
MasterServerFilter |
onlyOneServerPerUniqueIp(Boolean value)
Return only one server for each unique IP address matched
|
String |
toString() |
MasterServerFilter |
withHostName(String nameWildcard)
Servers with their hostname matching [hostname]
|
public static MasterServerFilter create()
A factory method to create a new MasterServerFilter
instance
MasterServerFilter
public MasterServerFilter allServers()
MasterServerFilter
public MasterServerFilter isSpecProxy(Boolean value)
Servers that are spectator proxies
value
- Set to True to filter spectator proxy serversMasterServerFilter
public MasterServerFilter isFull(Boolean value)
Servers that are not full
value
- Set to True to filter servers that are fullMasterServerFilter
public MasterServerFilter isEmpty(Boolean value)
Servers that are not empty
value
- Set to true to only filter servers that are emptyMasterServerFilter
public MasterServerFilter isPasswordProtected(Boolean value)
Filter for password protected servers
value
- Set to true to only filter servers that are password protectedMasterServerFilter
public MasterServerFilter isLinuxServer(Boolean value)
Servers running on a Linux platform
value
- Set to true to filter servers only running under linuxMasterServerFilter
public MasterServerFilter mapName(String value)
Servers running the specified map (ex. cs_italy)
value
- Map nameMasterServerFilter
public MasterServerFilter gamedir(String value)
Servers running the specified modification (ex. cstrike)
value
- The mode/game directory name (e.g. cstrike)MasterServerFilter
public MasterServerFilter isSecure(Boolean value)
Servers using anti-cheat technology (VAC, but potentially others as well)
value
- Set to true to filter only secure servers (VAC protected)MasterServerFilter
public MasterServerFilter dedicated(Boolean value)
Servers running dedicated
value
- Set to true to filter only dedicated serversMasterServerFilter
public MasterServerFilter nand()
A special filter, specifies that servers matching all of the following [x] conditions should not be returned
MasterServerFilter
public MasterServerFilter nor()
A special filter, specifies that servers matching any of the following [x] conditions should not be returned
MasterServerFilter
public MasterServerFilter napp(Integer appId)
Servers that are NOT running game [appid] (This was introduced to block Left 4 Dead games from the Steam Server Browser)
appId
- An integer representing the appId of a gameMasterServerFilter
public MasterServerFilter hasNoPlayers(Boolean value)
Servers that are empty
value
- Set to true to filter only empty serversMasterServerFilter
public MasterServerFilter gametypes(String... tags)
Servers with all of the given tag(s) in sv_tags
tags
- A String
array of tagsMasterServerFilter
public MasterServerFilter gamedata(String... tags)
tags
- Array of String game server tagsMasterServerFilter
public MasterServerFilter gamedataOr(String... tags)
tags
- Array of String game server tagsMasterServerFilter
public MasterServerFilter withHostName(String nameWildcard)
nameWildcard
- Hostname to lookup (can use * as a wildcard)MasterServerFilter
public MasterServerFilter hasVersion(String version)
version
- Version to search (can use * as a wildcard)MasterServerFilter
public MasterServerFilter onlyOneServerPerUniqueIp(Boolean value)
value
- Set to True to return only one server for each unique IPMasterServerFilter
public MasterServerFilter hasServerIp(String ipPort)
Return only servers on the specified IP address (port supported and optional)
ipPort
- IP[:port] formatMasterServerFilter
public MasterServerFilter isWhitelisted(Boolean value)
Servers that are whitelisted
value
- Set to true to filter only whitelisted serversMasterServerFilter
public MasterServerFilter appId(Integer appId)
Servers that are running game [appid]
appId
- An integer representing the appId of a gameMasterServerFilter
Copyright © 2016–2024. All rights reserved.