public class Console
The main class of the console mod. Most of its methods aren't publicly accessible, so this is mainly used to display messages to the player.
Modifier and Type | Method and Description |
---|---|
static BaseCommand.CommandContext |
getContext() |
static org.lazywizard.lazylib.ui.LazyFont |
getFont() |
static ConsoleSettings |
getSettings() |
static void |
reloadSettings()
Forces the console to reload its settings from the settings file.
|
static void |
showDialogOnClose() |
static void |
showDialogOnClose() |
static void |
showException()
Displays the stack trace of a Throwable.
|
static void |
showIndentedMessage()
Displays an indented message to the user. The message will be formatted and shown to the player when they reach a section of the game where it can be displayed properly (combat/campaign map).
|
static void |
showMessage()
Displays a message to the user. The message will be formatted and shown to the player when they reach a section of the game where it can be displayed properly (combat/campaign map).
|
static void |
showMessage()
Displays a message to the user. The message will be formatted and shown to the player when they reach a section of the game where it can be displayed properly (combat/campaign map).
|
public static void reloadSettings()
Forces the console to reload its settings from the settings file.
CommonStrings#PATH_SETTINGS
does not exist or can't be opened.public static ConsoleSettings getSettings()
public static org.lazywizard.lazylib.ui.LazyFont getFont()
public static BaseCommand.CommandContext getContext()
public static void showMessage()
Displays a message to the user. The message will be formatted and shown to the player when they reach a section of the game where it can be displayed properly (combat/campaign map).
public static void showMessage()
Displays a message to the user. The message will be formatted and shown to the player when they reach a section of the game where it can be displayed properly (combat/campaign map).
public static void showIndentedMessage()
Displays an indented message to the user. The message will be formatted and shown to the player when they reach a section of the game where it can be displayed properly (combat/campaign map).
public static void showException()
Displays the stack trace of a Throwable.
public static void showDialogOnClose()
public static void showDialogOnClose()