public class Proxy extends java.lang.Object implements ClientHandler, ExtraDataHandler
Constructor and Description |
---|
Proxy(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addExtra(java.lang.String handle,
java.lang.Object value)
Add an extra value to this Object
|
java.lang.String |
getDisplayName()
Get the Display Name of this Proxy
|
YAMLSection |
getExtra()
Get the extra value section
|
YAMLValue |
getExtra(java.lang.String handle)
Get an extra value
|
java.lang.String |
getName()
Get the Name of this Proxy
|
java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>> |
getPlayers()
Get the players on this proxy (via RedisBungee)
|
java.lang.String |
getSignature()
Get the Signature of this Object
|
Client |
getSubData()
Gets the SubData Client
|
boolean |
hasExtra(java.lang.String handle)
Determine if an extra value exists
|
void |
removeExtra(java.lang.String handle)
Remove an extra value from this Object
|
void |
setDisplayName(java.lang.String value)
Sets the Display Name for this Proxy
|
void |
setSubData(Client client)
Link a SubData Client to this Object
|
java.lang.String |
toString() |
public Proxy(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public Client getSubData()
ClientHandler
getSubData
in interface ClientHandler
public void setSubData(Client client)
ClientHandler
setSubData
in interface ClientHandler
client
- Client to LinkClient.setHandler(ClientHandler)
public java.lang.String getName()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String value)
value
- Value (or null to reset)public java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>> getPlayers()
public final java.lang.String getSignature()
public void addExtra(java.lang.String handle, java.lang.Object value)
ExtraDataHandler
addExtra
in interface ExtraDataHandler
handle
- Handlevalue
- Valuepublic boolean hasExtra(java.lang.String handle)
ExtraDataHandler
hasExtra
in interface ExtraDataHandler
handle
- Handlepublic YAMLValue getExtra(java.lang.String handle)
ExtraDataHandler
getExtra
in interface ExtraDataHandler
handle
- Handlepublic YAMLSection getExtra()
ExtraDataHandler
getExtra
in interface ExtraDataHandler
public void removeExtra(java.lang.String handle)
ExtraDataHandler
removeExtra
in interface ExtraDataHandler
handle
- Handlepublic java.lang.String toString()
toString
in class java.lang.Object