|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.User
public class User
A user connected to the server. The user can be a player or a spectator.
Field Summary | |
---|---|
static int |
STATUS_AFK
|
static int |
STATUS_OK
|
static int |
USER_PLAYER
|
static int |
USER_SPECTATOR
|
Constructor Summary | |
---|---|
User()
|
|
User(String name)
|
Method Summary | |
---|---|
int |
getAccessLevel()
|
Set<String> |
getIgnoredUsers()
Return the list of ignored players. |
Locale |
getLocale()
|
String |
getName()
|
Object |
getProperty(String key)
Return an extended property. |
int |
getStatus()
|
String |
getTeam()
|
void |
ignore(String name)
Add the specified name to the list of ignored users. |
boolean |
ignores(String name)
Tells if the specified nickname is ignored by this user. |
boolean |
isPlayer()
|
boolean |
isPlaying()
|
boolean |
isRegistered()
|
boolean |
isSpectator()
|
void |
setAccessLevel(int accessLevel)
|
void |
setLocale(Locale locale)
|
void |
setName(String name)
|
void |
setPlayer()
|
void |
setPlaying(boolean playing)
|
void |
setProperty(String key,
Object value)
Set an extended property for this player. |
void |
setRegistered(boolean registered)
|
void |
setSpectator()
|
void |
setStatus(int status)
|
void |
setTeam(String team)
|
String |
toString()
|
void |
unignore(String name)
Remove the specified name from the list of ignored users. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_OK
public static final int STATUS_AFK
public static final int USER_PLAYER
public static final int USER_SPECTATOR
Constructor Detail |
---|
public User()
public User(String name)
Method Detail |
---|
public void setName(String name)
public String getName()
public void setTeam(String team)
public String getTeam()
public void setAccessLevel(int accessLevel)
public int getAccessLevel()
public void setStatus(int status)
public int getStatus()
public void setRegistered(boolean registered)
public boolean isRegistered()
public void setPlaying(boolean playing)
public boolean isPlaying()
public void setSpectator()
public boolean isSpectator()
public void setPlayer()
public boolean isPlayer()
public void setLocale(Locale locale)
public Locale getLocale()
public boolean ignores(String name)
name
- the name of the user
public void ignore(String name)
name
- public void unignore(String name)
name
- public Set<String> getIgnoredUsers()
public void setProperty(String key, Object value)
public Object getProperty(String key)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |