public class ConsoleSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ConsoleSettings.KeyStroke
Represents the keys that must be pressed to summon the console.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandSeparator()
Returns what character sequence the player must separate multiple
commands with.
|
ConsoleSettings.KeyStroke |
getConsoleSummonKey()
Returns the key (and any modifier keys) that must be pressed to summon
the console.
|
int |
getMaxOutputLineLength()
Returns how many characters a line of output can reach before it is
wrapped.
|
java.awt.Color |
getOutputColor()
Returns the
Color of the console's output. |
boolean |
getShouldShowEnteredCommands()
Returns whether each valid individual command should be displayed before
being run.
|
java.lang.String |
getSoundForResult(BaseCommand.CommandResult result)
Returns what sound will be played when a command returns a specific
result.
|
double |
getTypoCorrectionThreshold()
Returns the threshold for similarity between two strings before one is
considered a typo of the other.
|
public ConsoleSettings.KeyStroke getConsoleSummonKey()
ConsoleSettings.KeyStroke
to summon the console.
public java.lang.String getCommandSeparator()
String
(usually a single character) that separates
multiple commands.
public boolean getShouldShowEnteredCommands()
true
if each command should be displayed to the player
before executing, false
otherwise.
public double getTypoCorrectionThreshold()
String
s must be for typo correction to
consider them a match.
public java.awt.Color getOutputColor()
Color
of the console's output.
Color
of the console's output.
public int getMaxOutputLineLength()
public java.lang.String getSoundForResult(BaseCommand.CommandResult result)
result
- The BaseCommand.CommandResult
to get the sound for.
BaseCommand.CommandResult
, or null
if no sound is set up for
that result.