public class DialogStateParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
PATTERN
The pattern to split fields in the save file.
|
Modifier | Constructor and Description |
---|---|
private |
DialogStateParser()
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static void |
load(JXCSkin skin,
JXCWindowRenderer windowRenderer)
Loads the dialogs state from a file.
|
static void |
save(JXCSkin skin,
JXCWindowRenderer windowRenderer)
Saves the dialogs state to a file.
|
private static void |
saveDialog(Gui dialog,
java.lang.String type,
java.io.Writer bw)
Saves the state of one dialog.
|
@NotNull private static final java.util.regex.Pattern PATTERN
private DialogStateParser()
public static void load(@NotNull JXCSkin skin, @NotNull JXCWindowRenderer windowRenderer)
skin
- the skin to updatewindowRenderer
- the window renderer instance to attach topublic static void save(@NotNull JXCSkin skin, @NotNull JXCWindowRenderer windowRenderer)
skin
- the skin to updatewindowRenderer
- the window renderer instance to attach toprivate static void saveDialog(@NotNull Gui dialog, @NotNull java.lang.String type, @NotNull java.io.Writer bw) throws java.io.IOException
dialog
- the dialog to savetype
- the dialog state; either "open" or "close"bw
- the writer to usejava.io.IOException
- if an I/O error occurs