public class SteamID extends 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 int |
AccountIDMask
Masking value used for the account id.
|
static int |
AccountInstanceMask
Masking value used for packing chat instance flags into a
SteamID . |
static int |
AllInstances
The account instance value when representing all instanced
SteamID |
static int |
ConsoleInstance
The account instance value for a console
SteamID . |
static int |
DesktopInstance
The account instance value for a desktop
SteamID . |
(package private) BitVector64 |
steamid |
(package private) static Pattern |
SteamIDRegex |
static int |
WebInstance
The account instance for a mobile or web based
SteamID . |
Constructor and Description |
---|
SteamID()
Initializes a new instance of the
SteamID class. |
SteamID(int unAccountID,
EUniverse eUniverse,
EAccountType eAccountType)
Initializes a new instance of the
SteamID class. |
SteamID(int unAccountID,
int unInstance,
EUniverse eUniverse,
EAccountType eAccountType)
Initializes a new instance of the
SteamID class. |
SteamID(long id)
Initializes a new instance of the
SteamID class. |
SteamID(String steamId)
Initializes a new instance of the
SteamID class from a rendered form. |
SteamID(String steamId,
EUniverse eUniverse)
Initializes a new instance of the
SteamID class from a rendered form and universe. |
Modifier and Type | Method and Description |
---|---|
SteamID |
clone() |
long |
convertToLong()
Converts this SteamID into it's 64bit integer form.
|
boolean |
equals(Object obj)
Determines whether the specified
Object is equal to this instance |
long |
getAccountID()
Gets the account id.
|
long |
getAccountInstance()
Gets the account instance.
|
EAccountType |
getAccountType()
Gets the account type.
|
EUniverse |
getAccountUniverse()
Gets the account universe.
|
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(int unAccountID,
int 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 blank anonymous 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.
|
String |
render()
Renders this instance into it's "STEAM_" represenation.
|
void |
set(int unAccountID,
EUniverse eUniverse,
EAccountType eAccountType)
Sets the various components of this SteamID instance.
|
void |
setAccountID(long value)
Sets the account id.
|
void |
setAccountInstance(long value)
Sets the account instance.
|
void |
setAccountInstance(SteamID.ChatInstanceFlags clan) |
void |
setAccountType(EAccountType value)
Sets the account type.
|
void |
setAccountUniverse(EUniverse value)
Sets the account universe.
|
boolean |
setFromString(String steamId,
EUniverse eUniverse)
Sets the various components of this SteamID from a rendered form and universe.
|
void |
setFromUInt64(long ulSteamID)
Sets the various components of this SteamID from a 64bit integer form.
|
String |
toString()
Returns a
String that represents this instance. |
BitVector64 steamid
static Pattern SteamIDRegex
public static final int AllInstances
SteamID
public static final int DesktopInstance
SteamID
.public static final int ConsoleInstance
SteamID
.public static final int WebInstance
SteamID
.public static final int AccountIDMask
public static final int AccountInstanceMask
SteamID
.public SteamID()
SteamID
class.public SteamID(int unAccountID, EUniverse eUniverse, EAccountType eAccountType)
SteamID
class.unAccountID
- The account ID.eUniverse
- The universe.eAccountType
- The account type.public SteamID(int unAccountID, int 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(String steamId)
SteamID
class from a rendered form.
This constructor assumes the rendered SteamID is in the public universe.steamId
- A "STEAM_" rendered form of the SteamID.public void set(int unAccountID, EUniverse eUniverse, EAccountType eAccountType)
unAccountID
- The account ID.eUniverse
- The universe.eAccountType
- The account type.public void instancedSet(int unAccountID, int unInstance, EUniverse eUniverse, EAccountType eAccountType)
unAccountID
- The account ID.unInstance
- The instance.eUniverse
- The universe.eAccountType
- The account type.public boolean setFromString(String steamId, EUniverse eUniverse)
steamId
- A "STEAM_" rendered form of the SteamID.eUniverse
- The universe the SteamID belongs to.public void setFromUInt64(long ulSteamID)
ulSteamID
- The 64bit integer to assign this SteamID from.public long convertToLong()
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 value)
value
- The account id.public long getAccountInstance()
public void setAccountInstance(long value)
value
- The account instance.public void setAccountInstance(SteamID.ChatInstanceFlags clan)
public EAccountType getAccountType()
public void setAccountType(EAccountType value)
value
- The account type.public EUniverse getAccountUniverse()
public void setAccountUniverse(EUniverse value)
value
- The account universe.public String render()
public boolean equals(Object obj)
Object
is equal to this instanceCopyright © 2012. All Rights Reserved.