Class ServerMessage
- java.lang.Object
-
- de.extio.spacecraft.shared.model.message.AbstractMessage
-
- de.extio.spacecraft.shared.model.message.toclient.ServerMessage
-
public final class ServerMessage extends AbstractMessage
Displays a message in a message box which is displayed in the center of the game client UI, usually server warnings or errors
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerMessage.ServerMessageHint
-
Constructor Summary
Constructors Constructor Description ServerMessage()
ServerMessage(String localizationId, List<String> placeholders, ServerMessage.ServerMessageHint hint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerMessage.ServerMessageHint
getHint()
String
getLocalizationId()
List<String>
getPlaceholders()
void
setHint(ServerMessage.ServerMessageHint hint)
void
setLocalizationId(String localizationId)
void
setPlaceholders(List<String> placeholders)
String
toString()
-
-
-
Constructor Detail
-
ServerMessage
public ServerMessage()
-
ServerMessage
public ServerMessage(String localizationId, List<String> placeholders, ServerMessage.ServerMessageHint hint)
-
-
Method Detail
-
getLocalizationId
public String getLocalizationId()
-
setLocalizationId
public void setLocalizationId(String localizationId)
-
getHint
public ServerMessage.ServerMessageHint getHint()
-
setHint
public void setHint(ServerMessage.ServerMessageHint hint)
-
toString
public String toString()
- Overrides:
toString
in classAbstractMessage
-
-