Skip to content

Commit

Permalink
chore: made a few config-related class fields protected
Browse files Browse the repository at this point in the history
Previously they were package-private
Allows more extensibility by other mods (e.g. quests)
  • Loading branch information
desht committed Jun 13, 2024
1 parent c2453bf commit 29ba355
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ public abstract class BaseValue<T> implements Comparable<BaseValue<T>> {
public final String key;
public final T defaultValue;
private T value;
boolean excluded;
BooleanSupplier enabled = SNBTUtils.ALWAYS_TRUE;
protected boolean excluded;
protected BooleanSupplier enabled = SNBTUtils.ALWAYS_TRUE;
protected int displayOrder = 0;
protected List<String> comment = new ArrayList<>(0);

List<String> comment = new ArrayList<>(0);

public BaseValue(@Nullable SNBTConfig c, String n, T def) {
protected BaseValue(@Nullable SNBTConfig c, String n, T def) {
parent = c;
key = n;
defaultValue = def;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import java.util.regex.Pattern;

public class StringValue extends BaseValue<String> {
private Pattern pattern;
protected Pattern pattern;

StringValue(SNBTConfig c, String n, String def) {
protected StringValue(SNBTConfig c, String n, String def) {
super(c, n, def);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public void addWidgets() {

if (hasSearchBox) {
add(searchBox);
searchBox.setFocused(true);
}
}

Expand Down

0 comments on commit 29ba355

Please sign in to comment.