Interface GuiThemeState
public interface GuiThemeState
State a theme keeps between sessions, such as where panels were moved. Saved with the Client
profile.
Profiles can be loaded from codes other players share, so treat everything read here as untrusted: check types and ranges before using a value.
Profiles can be loaded from codes other players share, so treat everything read here as untrusted: check types and ranges before using a value.
-
Method Summary
-
Method Details
-
read
com.google.gson.JsonObject read()- Returns:
- A copy of the stored state, empty if there is none
-
write
void write(com.google.gson.JsonObject state) Replaces the stored state. Large states are dropped when saving.- Parameters:
state- The new state
-