public class Server
extends java.lang.Object
Constructor and Description |
---|
Server(YAMLSection raw)
Create an API representation of a Server
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.net.InetSocketAddress |
getAddress()
Get the Address of this Server
|
java.lang.String |
getDisplayName()
Get the Display Name of this Server
|
java.util.List<java.lang.String> |
getGroups()
Get this Server's Groups
|
java.lang.String |
getMotd()
Gets the MOTD of the Server
|
java.lang.String |
getName()
Get the Name of this Server
|
java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>> |
getPlayers()
Get the players on this server
|
java.lang.String |
getSignature()
Get the Signature of this Object
|
java.lang.String |
getSubData()
Gets the SubData Client Address
|
long |
getTimestamp()
Get the Timestamp for when the data was last refreshed
|
boolean |
isHidden()
If the server is hidden from players
|
boolean |
isRestricted()
Gets if the Server is Restricted
|
void |
refresh()
Download a new copy of the data from SubData
|
java.lang.String |
toString() |
public Server(YAMLSection raw)
raw
- Raw representation of the Serverpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void refresh()
public java.lang.String getSubData()
public java.lang.String getName()
public java.lang.String getDisplayName()
public java.net.InetSocketAddress getAddress()
public java.util.List<java.lang.String> getGroups()
public java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>> getPlayers()
public boolean isHidden()
public java.lang.String getMotd()
public boolean isRestricted()
public java.lang.String getSignature()
public long getTimestamp()
public java.lang.String toString()
toString
in class java.lang.Object