public class SteamID
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SteamID.ChatInstanceFlags
Represents various flags a chat
SteamID may have, packed into its instance. |
| Modifier and Type | Field and Description |
|---|---|
static long |
ACCOUNT_ID_MASK
Masking value used for the account id.
|
static long |
ACCOUNT_INSTANCE_MASK
Masking value used for packing chat instance flags into a
SteamID. |
static long |
ALL_INSTANCES
The account instance value when representing all instanced
SteamIDs. |
static long |
CONSOLE_INSTANCE
The account instance value for a console
SteamID. |
static long |
DESKTOP_INSTANCE
The account instance value for a desktop
SteamID. |
static char |
UNKNOWN_ACCOUNT_TYPE_CHAR |
static long |
WEB_INSTANCE
The account instance for mobile or web based
SteamIDs. |
| Constructor and Description |
|---|
SteamID() |
SteamID(long id)
Initializes a new instance of the
SteamID class. |
SteamID(long unAccountID,
EUniverse eUniverse,
EAccountType eAccountType) |
SteamID(long unAccountID,
long unInstance,
EUniverse eUniverse,
EAccountType eAccountType)
Initializes a new instance of the
SteamID class. |
SteamID(java.lang.String steamId)
Initializes a new instance of the
SteamID class from a Steam2 "STEAM_" rendered form. |
SteamID(java.lang.String steamId,
EUniverse eUniverse)
Initializes a new instance of the
SteamID class from a Steam2 "STEAM_" rendered form and universe. |
| Modifier and Type | Method and Description |
|---|---|
long |
convertToUInt64()
Converts this SteamID into it's 64bit integer form.
|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
Object is equal to this instance. |
long |
getAccountID() |
long |
getAccountInstance() |
EAccountType |
getAccountType() |
EUniverse |
getAccountUniverse() |
long |
getStaticAccountKey()
Returns a static account key used for grouping accounts with differing instances.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
instancedSet(long unAccountID,
long unInstance,
EUniverse eUniverse,
EAccountType eAccountType)
Sets the various components of this SteamID instance.
|
boolean |
isAnonAccount()
Gets a value indicating whether this instance is an anonymous account.
|
boolean |
isAnonGameServerAccount()
Gets a value indicating whether this instance is an anonymous game server account.
|
boolean |
isAnonUserAccount()
Gets a value indicating whether this instance is an anonymous user account.
|
boolean |
isBlankAnonAccount()
Gets a value indicating whether this instance is a game server account.
|
boolean |
isChatAccount()
Gets a value indicating whether this instance is a chat account.
|
boolean |
isClanAccount()
Gets a value indicating whether this instance is a clan account.
|
boolean |
isConsoleUserAccount()
Gets a value indicating whether this instance is a console user account.
|
boolean |
isContentServerAccount()
Gets a value indicating whether this instance is a content server account.
|
boolean |
isGameServerAccount()
Gets a value indicating whether this instance is a game server account.
|
boolean |
isIndividualAccount()
Gets a value indicating whether this instance is an individual account.
|
boolean |
isLobby()
Gets a value indicating whether this instance is a lobby.
|
boolean |
isPersistentGameServerAccount()
Gets a value indicating whether this instance is a persistent game server account.
|
boolean |
isValid()
Gets a value indicating whether this instance is valid.
|
java.lang.String |
render()
Renders this instance into it's Steam3 representation.
|
java.lang.String |
render(boolean steam3)
Renders this instance into it's Steam2 "STEAM_" or Steam3 representation.
|
void |
set(long unAccountID,
EUniverse eUniverse,
EAccountType eAccountType)
Sets the various components of this SteamID instance.
|
void |
setAccountID(long accountID) |
void |
setAccountInstance(long accountInstance) |
void |
setAccountType(EAccountType accountType) |
void |
setAccountUniverse(EUniverse accountUniverse) |
boolean |
setFromSteam3String(java.lang.String steamId)
Sets the various components of this SteamID from a Steam3 "[X:1:2:3]" rendered form and universe.
|
boolean |
setFromString(java.lang.String steamId,
EUniverse eUniverse)
Sets the various components of this SteamID from a Steam2 "STEAM_" rendered form and universe.
|
void |
setFromUInt64(long longSteamId)
Sets the various components of this SteamID from a 64bit integer form.
|
SteamID |
toChatID()
Converts this clan ID to a chat ID.
|
java.lang.String |
toString()
Returns a
String that represents this instance. |
SteamID |
tryGetClanID()
Converts this chat ID to a clan ID.
|
public static final char UNKNOWN_ACCOUNT_TYPE_CHAR
public static final long ALL_INSTANCES
SteamIDs.public static final long DESKTOP_INSTANCE
SteamID.public static final long CONSOLE_INSTANCE
SteamID.public static final long WEB_INSTANCE
SteamIDs.public static final long ACCOUNT_ID_MASK
public static final long ACCOUNT_INSTANCE_MASK
SteamID.public SteamID()
public SteamID(long unAccountID,
EUniverse eUniverse,
EAccountType eAccountType)
public SteamID(long unAccountID,
long unInstance,
EUniverse eUniverse,
EAccountType eAccountType)
SteamID class.unAccountID - The account ID.unInstance - The instance.eUniverse - The universe.eAccountType - The account type.public SteamID(long id)
SteamID class.id - The 64bit integer to assign this SteamID from.public SteamID(java.lang.String steamId)
SteamID class from a Steam2 "STEAM_" rendered form.
This constructor assumes the rendered SteamID is in the public universe.steamId - A "STEAM_" rendered form of the SteamID.public void set(long unAccountID,
EUniverse eUniverse,
EAccountType eAccountType)
unAccountID - The account ID.eUniverse - The universe.eAccountType - The account type.public void instancedSet(long unAccountID,
long unInstance,
EUniverse eUniverse,
EAccountType eAccountType)
unAccountID - The account ID.unInstance - The instance.eUniverse - The universe.eAccountType - The account type.public boolean setFromString(java.lang.String steamId,
EUniverse eUniverse)
steamId - A "STEAM_" rendered form of the SteamID.eUniverse - The universe the SteamID belongs to.public boolean setFromSteam3String(java.lang.String steamId)
steamId - A "[X:1:2:3]" rendered form of the SteamID.public void setFromUInt64(long longSteamId)
longSteamId - The 64bit integer to assign this SteamID from.public long convertToUInt64()
public long getStaticAccountKey()
public boolean isBlankAnonAccount()
public boolean isGameServerAccount()
public boolean isPersistentGameServerAccount()
public boolean isAnonGameServerAccount()
public boolean isContentServerAccount()
public boolean isClanAccount()
public boolean isChatAccount()
public boolean isLobby()
public boolean isIndividualAccount()
public boolean isAnonAccount()
public boolean isAnonUserAccount()
public boolean isConsoleUserAccount()
public boolean isValid()
public long getAccountID()
public void setAccountID(long accountID)
public long getAccountInstance()
public void setAccountInstance(long accountInstance)
public EAccountType getAccountType()
public void setAccountType(EAccountType accountType)
public EUniverse getAccountUniverse()
public void setAccountUniverse(EUniverse accountUniverse)
public SteamID toChatID()
java.lang.IllegalStateException - This SteamID is not a clan ID.public SteamID tryGetClanID()
public java.lang.String render()
public java.lang.String render(boolean steam3)
steam3 - If set to true, the Steam3 rendering will be returned; otherwise, the Steam2 STEAM_ rendering.public java.lang.String toString()
String that represents this instance.toString in class java.lang.ObjectString that represents this instance.public boolean equals(java.lang.Object obj)
Object is equal to this instance.equals in class java.lang.Objectobj - The Object to compare with this instance.Object is equal to this instance; otherwise, false.public int hashCode()
hashCode in class java.lang.Object