Class SettingsEntries
- java.lang.Object
-
- com.realtime.crossfire.jxclient.settings.SettingsEntries
-
public class SettingsEntries extends java.lang.ObjectAll defined entries in the settings file.
-
-
Field Summary
Fields Modifier and Type Field Description static @NotNull SettingsEntry<java.lang.Boolean>MESSAGE_LOG_SETTINGS_ENTRYWhether to record of all text messages received from the server.static @NotNull SettingsEntry<java.lang.String>SERVERThe server to which the previous connection was made.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull SettingsEntry<java.lang.String>getLoginAccountSettingsEntry(@NotNull java.lang.String hostname)Returns theSettingsEntryfor the default account name on a server.static @NotNull SettingsEntry<java.lang.String>getLoginAccountSettingsEntry(@NotNull java.lang.String hostname, @NotNull java.lang.String accountName)Returns theSettingsEntryfor the default character name on an account.static @NotNull SettingsEntry<java.lang.Long>getPickupSettingsEntry(@NotNull java.lang.String hostname, @NotNull java.lang.String characterName)Returns theSettingsEntryfor the default pickup mode of a character.static @NotNull SettingsEntry<java.lang.String>getPlayerSettingsEntry(@NotNull java.lang.String hostname)Returns theSettingsEntryfor the default character name on a server.
-
-
-
Field Detail
-
SERVER
@NotNull public static final @NotNull SettingsEntry<java.lang.String> SERVER
The server to which the previous connection was made.
-
MESSAGE_LOG_SETTINGS_ENTRY
@NotNull public static final @NotNull SettingsEntry<java.lang.Boolean> MESSAGE_LOG_SETTINGS_ENTRY
Whether to record of all text messages received from the server.
-
-
Method Detail
-
getPlayerSettingsEntry
@NotNull public static @NotNull SettingsEntry<java.lang.String> getPlayerSettingsEntry(@NotNull @NotNull java.lang.String hostname)
Returns theSettingsEntryfor the default character name on a server.- Parameters:
hostname- the hostname of the server- Returns:
- the settings entry
-
getLoginAccountSettingsEntry
@NotNull public static @NotNull SettingsEntry<java.lang.String> getLoginAccountSettingsEntry(@NotNull @NotNull java.lang.String hostname)
Returns theSettingsEntryfor the default account name on a server.- Parameters:
hostname- the hostname of the server- Returns:
- the settings entry
-
getLoginAccountSettingsEntry
@NotNull public static @NotNull SettingsEntry<java.lang.String> getLoginAccountSettingsEntry(@NotNull @NotNull java.lang.String hostname, @NotNull @NotNull java.lang.String accountName)
Returns theSettingsEntryfor the default character name on an account.- Parameters:
hostname- the hostname of the serveraccountName- the name of the account- Returns:
- the settings entry
-
getPickupSettingsEntry
@NotNull public static @NotNull SettingsEntry<java.lang.Long> getPickupSettingsEntry(@NotNull @NotNull java.lang.String hostname, @NotNull @NotNull java.lang.String characterName)
Returns theSettingsEntryfor the default pickup mode of a character.- Parameters:
hostname- the hostname of the servercharacterName- the name of the character- Returns:
- the settings entry
-
-