diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-09-03 12:50:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-03 13:50:40 +0200 |
commit | 4c60b452efda24794c0faa5f300fdd830edcd383 (patch) | |
tree | 06c4d425bdc405af0189f4707ba1302b864f7328 /src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java | |
parent | b7169237c543bf549a4b03dcc9a23b516da635eb (diff) | |
download | OneConfig-4c60b452efda24794c0faa5f300fdd830edcd383.tar.gz OneConfig-4c60b452efda24794c0faa5f300fdd830edcd383.tar.bz2 OneConfig-4c60b452efda24794c0faa5f300fdd830edcd383.zip |
deprecator + Stack trace utilities (#121)
* deprecator
* check for more system packages because iterators n stuff
* add LogScanner, new loader platform features, spam protection
* oop~
* move to Preferences
* diamond review
* add back the exception
* try-catch things and associate OneConfig mods with an ActiveMod
* ok maybe not + api my beloved
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java b/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java index bc6e9c0..72b5527 100644 --- a/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java +++ b/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java @@ -26,6 +26,7 @@ package cc.polyfrost.oneconfig.utils; +import cc.polyfrost.oneconfig.internal.utils.Deprecator; import cc.polyfrost.oneconfig.renderer.RenderManager; import cc.polyfrost.oneconfig.renderer.font.Font; @@ -47,7 +48,9 @@ public final class TextUtils { * @param font The font to use. * @return The array of lines. */ + @Deprecated public static ArrayList<String> wrapText(long vg, String text, float maxWidth, float fontSize, Font font) { + Deprecator.markDeprecated(); ArrayList<String> wrappedText = new ArrayList<>(); text += " "; int prevIndex = 0; |