SSCL Wiki

String Value

string()

Creates a string value.

StringValue name = category.string("name", "Example");

get()

String name = value.get();

set()

value.set("Something");

getDefault()

String defaultValue = value.getDefault();

resetToDefault()

value.resetToDefault();

comment()

value.comment("Text used by the mod.");

tooltip()

value.tooltip("Explains what this text is used for.");