aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/ComponentBuilder.java
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-07-21 12:15:27 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-07-21 12:15:27 -0230
commit7db7137f5099d8f41be08689a54f704692574f4d (patch)
tree955436190b6db0bf61ce0cb87088b001c27079bb /src/main/java/com/thatgravyboat/skyblockhud/ComponentBuilder.java
parenta8ee0a763eca9774895446eac13486a6ee42bdba (diff)
downloadSkyblockHud-Death-Defied-7db7137f5099d8f41be08689a54f704692574f4d.tar.gz
SkyblockHud-Death-Defied-7db7137f5099d8f41be08689a54f704692574f4d.tar.bz2
SkyblockHud-Death-Defied-7db7137f5099d8f41be08689a54f704692574f4d.zip
Added Crystal Hollows Map, Updated Textures to check all resourcepacks and made it so that only 1 resourcepack can change the defaultName checking in the order in which the texturepacks are in the resourcepack menu.
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/ComponentBuilder.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/ComponentBuilder.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/ComponentBuilder.java b/src/main/java/com/thatgravyboat/skyblockhud/ComponentBuilder.java
deleted file mode 100644
index b0c17be..0000000
--- a/src/main/java/com/thatgravyboat/skyblockhud/ComponentBuilder.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.thatgravyboat.skyblockhud;
-
-public class ComponentBuilder {
-
- public StringBuilder builder;
-
- public ComponentBuilder() {
- this.builder = new StringBuilder();
- }
-
- public ComponentBuilder apd(String text) {
- return apd(text, '7');
- }
-
- public ComponentBuilder apd(String text, char[] colors) {
- for (char color : colors) {
- builder.append("\u00A7").append(color);
- }
- builder.append(text).append("\u00A7").append('r');
- return this;
- }
-
- public ComponentBuilder apd(String text, char color) {
- builder.append("\u00A7").append(color).append(text).append("\u00A7").append('r');
- return this;
- }
-
- public ComponentBuilder nl() {
- builder.append("\n");
- return this;
- }
-
- public ComponentBuilder nl(String text, char color) {
- apd(text, color);
- builder.append("\n");
- return this;
- }
-
- public ComponentBuilder nl(String text, char[] colors) {
- apd(text, colors);
- builder.append("\n");
- return this;
- }
-
- public ComponentBuilder nl(String text) {
- apd(text);
- builder.append("\n");
- return this;
- }
-
- public String build() {
- return builder.toString();
- }
-}