diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-05-27 22:29:47 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-05-27 22:29:47 +0300 |
commit | fdb62eaf20885c7ab0c9d58a25bd99cd4dfeffdf (patch) | |
tree | 7f2138e61e5e3eb404ce304b4d9db979766bb053 /src | |
parent | 7aabd65ef6a56e377554c6d765e866d5bd1350ff (diff) | |
download | LibGui-fdb62eaf20885c7ab0c9d58a25bd99cd4dfeffdf.tar.gz LibGui-fdb62eaf20885c7ab0c9d58a25bd99cd4dfeffdf.tar.bz2 LibGui-fdb62eaf20885c7ab0c9d58a25bd99cd4dfeffdf.zip |
Make all WTextField instance fields private4.0.0-beta.1
This lets me rewrite the implementation during the 4.x cycle.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java index 70c0613..60ae5d4 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTextField.java @@ -34,18 +34,18 @@ public class WTextField extends WWidget { @Environment(EnvType.CLIENT) private TextRenderer font; - - protected String text = ""; - protected int maxLength = 16; - protected boolean editable = true; - - protected int enabledColor = 0xE0E0E0; - protected int uneditableColor = 0x707070; + + private String text = ""; + private int maxLength = 16; + private boolean editable = true; + + private int enabledColor = 0xE0E0E0; + private int uneditableColor = 0x707070; @Nullable - protected Text suggestion = null; - - protected int cursor = 0; + private Text suggestion = null; + + private int cursor = 0; /** * If not -1, select is the "anchor point" of a selection. That is, if you hit shift+left with * no existing selection, the selection will be anchored to where you were, but the cursor will @@ -53,15 +53,15 @@ public class WTextField extends WWidget { * eventually you'll overtake the anchor, drop the anchor at the same place and start expanding * the selection rightwards instead. */ - protected int select = -1; - - protected Consumer<String> onChanged; - - protected Predicate<String> textPredicate; + private int select = -1; + + private Consumer<String> onChanged; + + private Predicate<String> textPredicate; @Environment(EnvType.CLIENT) @Nullable - protected BackgroundPainter backgroundPainter; + private BackgroundPainter backgroundPainter; public WTextField() { } |