aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-27 11:53:57 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-27 11:53:57 -0500
commitb09f774d422263ce15b97d6d0804beddf856176d (patch)
treee542258481d7496b15679f3c329ef9e087c7d8fc /src/main/java/io/github/moulberry/notenoughupdates/util
parent22cb02adbeb24b7ec98f843bcaba99cebe3e4f03 (diff)
downloadnotenoughupdates-b09f774d422263ce15b97d6d0804beddf856176d.tar.gz
notenoughupdates-b09f774d422263ce15b97d6d0804beddf856176d.tar.bz2
notenoughupdates-b09f774d422263ce15b97d6d0804beddf856176d.zip
feat: improve formating :)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/AllowEmptyHTMLTag.java112
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java106
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Debouncer.java38
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java34
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/GuiTextures.java230
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/HastebinUploader.java86
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java323
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/HypixelApi.java316
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/LerpingFloat.java98
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/NEUResourceManager.java48
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/ProfileApiSyncer.java129
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/RequestFocusListener.java72
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/ReverseWorldRenderer.java1069
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java661
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/SpecialColour.java172
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/TexLoc.java88
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java3159
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/XPInformation.java445
18 files changed, 3789 insertions, 3397 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/AllowEmptyHTMLTag.java b/src/main/java/io/github/moulberry/notenoughupdates/util/AllowEmptyHTMLTag.java
index e6baff16..b7fc55e4 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/AllowEmptyHTMLTag.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/AllowEmptyHTMLTag.java
@@ -10,65 +10,65 @@ import java.util.List;
import java.util.Map;
public class AllowEmptyHTMLTag extends HTMLTag {
- public AllowEmptyHTMLTag(String name) {
- super(name);
- }
+ public AllowEmptyHTMLTag(String name) {
+ super(name);
+ }
- public void renderHTML(ITextConverter converter, Appendable buf, IWikiModel model) throws IOException {
- boolean newLinesAfterTag = false;
- boolean newLinesAfterChildren = false;
- TagNode node = this;
- String name = node.getName();
- List<Object> children = node.getChildren();
+ public void renderHTML(ITextConverter converter, Appendable buf, IWikiModel model) throws IOException {
+ boolean newLinesAfterTag = false;
+ boolean newLinesAfterChildren = false;
+ TagNode node = this;
+ String name = node.getName();
+ List<Object> children = node.getChildren();
- if (NEW_LINES) {
- switch (name) {
- case "div":
- case "p":
- case "li":
- case "td":
- buf.append('\n');
- break;
- case "table":
- case "ul":
- case "ol":
- case "th":
- case "tr":
- buf.append('\n');
- newLinesAfterTag = true;
- newLinesAfterChildren = true;
- break;
- case "pre":
- buf.append('\n');
- newLinesAfterTag = false;
- newLinesAfterChildren = true;
- break;
- case "blockquote":
- newLinesAfterChildren = true;
- break;
- }
- }
- buf.append('<');
- buf.append(name);
+ if (NEW_LINES) {
+ switch (name) {
+ case "div":
+ case "p":
+ case "li":
+ case "td":
+ buf.append('\n');
+ break;
+ case "table":
+ case "ul":
+ case "ol":
+ case "th":
+ case "tr":
+ buf.append('\n');
+ newLinesAfterTag = true;
+ newLinesAfterChildren = true;
+ break;
+ case "pre":
+ buf.append('\n');
+ newLinesAfterTag = false;
+ newLinesAfterChildren = true;
+ break;
+ case "blockquote":
+ newLinesAfterChildren = true;
+ break;
+ }
+ }
+ buf.append('<');
+ buf.append(name);
- Map<String, String> tagAtttributes = node.getAttributes();
+ Map<String, String> tagAtttributes = node.getAttributes();
- appendAttributes(buf, tagAtttributes);
+ appendAttributes(buf, tagAtttributes);
- if (children.size() == 0) {
- buf.append(" />");
- } else {
- buf.append('>');
- if (newLinesAfterTag) {
- buf.append('\n');
- }
- converter.nodesToText(children, buf, model);
- if (newLinesAfterChildren) {
- buf.append('\n');
- }
- buf.append("</");
- buf.append(node.getName());
- buf.append('>');
- }
- }
+ if (children.size() == 0) {
+ buf.append(" />");
+ } else {
+ buf.append('>');
+ if (newLinesAfterTag) {
+ buf.append('\n');
+ }
+ converter.nodesToText(children, buf, model);
+ if (newLinesAfterChildren) {
+ buf.append('\n');
+ }
+ buf.append("</");
+ buf.append(node.getName());
+ buf.append('>');
+ }
+ }
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java
index c49608c6..bb3b3425 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java
@@ -8,54 +8,60 @@ import java.util.concurrent.locks.ReentrantLock;
import java.util.regex.Pattern;
public class Constants {
- private static class PatternSerializer implements JsonDeserializer<Pattern>, JsonSerializer<Pattern> {
- @Override
- public Pattern deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
- return Pattern.compile(json.getAsString());
- }
-
- @Override
- public JsonElement serialize(Pattern src, Type typeOfSrc, JsonSerializationContext context) {
- return new JsonPrimitive(src.pattern());
- }
- }
-
- private static final Gson gson = new GsonBuilder().setPrettyPrinting()
- .registerTypeAdapter(Pattern.class, new PatternSerializer()).create();
-
- public static JsonObject BONUSES;
- public static JsonObject DISABLE;
- public static JsonObject ENCHANTS;
- public static JsonObject LEVELING;
- public static JsonObject MISC;
- public static JsonObject PETNUMS;
- public static JsonObject PETS;
- public static JsonObject PARENTS;
- public static JsonObject ESSENCECOSTS;
- public static JsonObject FAIRYSOULS;
- public static JsonObject REFORGESTONES;
- public static CollectionConstant COLLECTIONLOG;
-
- private static final ReentrantLock lock = new ReentrantLock();
-
- public static void reload() {
- try {
- lock.lock();
-
- BONUSES = Utils.getConstant("bonuses", gson);
- DISABLE = Utils.getConstant("disable", gson);
- ENCHANTS = Utils.getConstant("enchants", gson);
- LEVELING = Utils.getConstant("leveling", gson);
- MISC = Utils.getConstant("misc", gson);
- PETNUMS = Utils.getConstant("petnums", gson);
- PETS = Utils.getConstant("pets", gson);
- PARENTS = Utils.getConstant("parents", gson);
- ESSENCECOSTS = Utils.getConstant("essencecosts", gson);
- FAIRYSOULS = Utils.getConstant("fairy_souls", gson);
- REFORGESTONES = Utils.getConstant("reforgestones", gson);
- //COLLECTIONLOG = Utils.getConstant("collectionlog", gson, CollectionConstant.class);
- } finally {
- lock.unlock();
- }
- }
+ private static class PatternSerializer implements JsonDeserializer<Pattern>, JsonSerializer<Pattern> {
+ @Override
+ public Pattern deserialize(
+ JsonElement json,
+ Type typeOfT,
+ JsonDeserializationContext context
+ ) throws JsonParseException {
+ return Pattern.compile(json.getAsString());
+ }
+
+ @Override
+ public JsonElement serialize(Pattern src, Type typeOfSrc, JsonSerializationContext context) {
+ return new JsonPrimitive(src.pattern());
+ }
+ }
+
+ private static final Gson gson = new GsonBuilder()
+ .setPrettyPrinting()
+ .registerTypeAdapter(Pattern.class, new PatternSerializer())
+ .create();
+
+ public static JsonObject BONUSES;
+ public static JsonObject DISABLE;
+ public static JsonObject ENCHANTS;
+ public static JsonObject LEVELING;
+ public static JsonObject MISC;
+ public static JsonObject PETNUMS;
+ public static JsonObject PETS;
+ public static JsonObject PARENTS;
+ public static JsonObject ESSENCECOSTS;
+ public static JsonObject FAIRYSOULS;
+ public static JsonObject REFORGESTONES;
+ public static CollectionConstant COLLECTIONLOG;
+
+ private static final ReentrantLock lock = new ReentrantLock();
+
+ public static void reload() {
+ try {
+ lock.lock();
+
+ BONUSES = Utils.getConstant("bonuses", gson);
+ DISABLE = Utils.getConstant("disable", gson);
+ ENCHANTS = Utils.getConstant("enchants", gson);
+ LEVELING = Utils.getConstant("leveling", gson);
+ MISC = Utils.getConstant("misc", gson);
+ PETNUMS = Utils.getConstant("petnums", gson);
+ PETS = Utils.getConstant("pets", gson);
+ PARENTS = Utils.getConstant("parents", gson);
+ ESSENCECOSTS = Utils.getConstant("essencecosts", gson);
+ FAIRYSOULS = Utils.getConstant("fairy_souls", gson);
+ REFORGESTONES = Utils.getConstant("reforgestones", gson);
+ //COLLECTIONLOG = Utils.getConstant("collectionlog", gson, CollectionConstant.class);
+ } finally {
+ lock.unlock();
+ }
+ }
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Debouncer.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Debouncer.java
index be42364a..15808a29 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Debouncer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Debouncer.java
@@ -7,28 +7,28 @@ package io.github.moulberry.notenoughupdates.util;
* within {@link #getDelayInNanoSeconds()} nanoseconds.
*/
public class Debouncer {
- private long lastPinged = 0L;
- private final long delay;
+ private long lastPinged = 0L;
+ private final long delay;
- public Debouncer(long minimumDelayInNanoSeconds) {
- this.delay = minimumDelayInNanoSeconds;
- }
+ public Debouncer(long minimumDelayInNanoSeconds) {
+ this.delay = minimumDelayInNanoSeconds;
+ }
- public long getDelayInNanoSeconds() {
- return delay;
- }
+ public long getDelayInNanoSeconds() {
+ return delay;
+ }
- public synchronized long timePassed() {
- // longs are technically not atomic reads since they use two 32 bit registers
- // so, yes, this technically has to be synchronized
- return System.nanoTime() - lastPinged;
- }
+ public synchronized long timePassed() {
+ // longs are technically not atomic reads since they use two 32 bit registers
+ // so, yes, this technically has to be synchronized
+ return System.nanoTime() - lastPinged;
+ }
- public synchronized boolean trigger() {
- long newPingTime = System.nanoTime();
- long newDelay = newPingTime - lastPinged;
- lastPinged = newPingTime;
- return newDelay >= this.delay;
- }
+ public synchronized boolean trigger() {
+ long newPingTime = System.nanoTime();
+ long newDelay = newPingTime - lastPinged;
+ lastPinged = newPingTime;
+ return newDelay >= this.delay;
+ }
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java b/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java
index adc0010f..1c78f924 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java
@@ -1,25 +1,25 @@
package io.github.moulberry.notenoughupdates.util;
public class DiscordMarkdownBuilder {
- private final StringBuilder builder;
+ private final StringBuilder builder;
- public DiscordMarkdownBuilder() {
- this.builder = new StringBuilder();
- this.builder.append("```md\n");
- }
+ public DiscordMarkdownBuilder() {
+ this.builder = new StringBuilder();
+ this.builder.append("```md\n");
+ }
- public DiscordMarkdownBuilder category(String name) {
- builder.append("# ").append(name).append("\n");
- return this;
- }
+ public DiscordMarkdownBuilder category(String name) {
+ builder.append("# ").append(name).append("\n");
+ return this;
+ }
- public DiscordMarkdownBuilder append(String key, Object value) {
- builder.append("[").append(key).append("]").append("[").append(value).append("]").append("\n");
- return this;
- }
+ public DiscordMarkdownBuilder append(String key, Object value) {
+ builder.append("[").append(key).append("]").append("[").append(value).append("]").append("\n");
+ return this;
+ }
- @Override
- public String toString() {
- return builder.append("```").toString();
- }
+ @Override
+ public String toString() {
+ return builder.append("```").toString();
+ }
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/GuiTextures.java b/src/main/java/io/github/moulberry/notenoughupdates/util/GuiTextures.java
index 60fd7f13..48a6915b 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/GuiTextures.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/GuiTextures.java
@@ -3,105 +3,135 @@ package io.github.moulberry.notenoughupdates.util;
import net.minecraft.util.ResourceLocation;
public class GuiTextures {
- private GuiTextures() {} // Not instantiable. Use import static to access class members.
-
- public static final ResourceLocation itemPaneTabArrow = new ResourceLocation("notenoughupdates:item_pane_tab_arrow.png");
- //public static final ResourceLocation prev = new ResourceLocation("notenoughupdates:prev.png");
- //public static final ResourceLocation next = new ResourceLocation("notenoughupdates:next.png");
- public static final ResourceLocation rightarrow_overlay = new ResourceLocation("notenoughupdates:rightarrow_overlay.png");
- public static final ResourceLocation rightarrow = new ResourceLocation("notenoughupdates:rightarrow.png");
- public static final ResourceLocation close = new ResourceLocation("notenoughupdates:close.png");
- public static final ResourceLocation settings = new ResourceLocation("notenoughupdates:settings.png");
-
- public static final ResourceLocation off = new ResourceLocation("notenoughupdates:off.png");
- public static final ResourceLocation on = new ResourceLocation("notenoughupdates:on.png");
- public static final ResourceLocation help = new ResourceLocation("notenoughupdates:help.png");
- public static final ResourceLocation slider_off = new ResourceLocation("notenoughupdates:slider_off.png");
- public static final ResourceLocation slider_on = new ResourceLocation("notenoughupdates:slider_on.png");
- public static final ResourceLocation slider_off_large = new ResourceLocation("notenoughupdates:slider_off_large.png");
- public static final ResourceLocation slider_on_large = new ResourceLocation("notenoughupdates:slider_on_large.png");
- public static final ResourceLocation slider_button = new ResourceLocation("notenoughupdates:slider_button.png");
-
- public static final ResourceLocation DISCORD = new ResourceLocation("notenoughupdates:social/discord.png");
- public static final ResourceLocation GITHUB = new ResourceLocation("notenoughupdates:social/github.png");
- public static final ResourceLocation PATREON = new ResourceLocation("notenoughupdates:social/patreon.png");
- public static final ResourceLocation TWITTER = new ResourceLocation("notenoughupdates:social/twitter.png");
- public static final ResourceLocation YOUTUBE = new ResourceLocation("notenoughupdates:social/youtube.png");
- public static final ResourceLocation TWITCH = new ResourceLocation("notenoughupdates:social/twitch.png");
-
- public static final ResourceLocation item_mask = new ResourceLocation("notenoughupdates:item_mask.png");
- public static final ResourceLocation item_haschild = new ResourceLocation("notenoughupdates:item_haschild.png");
- public static final ResourceLocation button_tex = new ResourceLocation("notenoughupdates:button.png");
- public static final ResourceLocation button_fsr = new ResourceLocation("notenoughupdates:FSR_do_not_texture_this_please.png");
-
- public static final ResourceLocation setting_border = new ResourceLocation("notenoughupdates:setting_border.png");
-
- public static final ResourceLocation button_white = new ResourceLocation("notenoughupdates:button_white.png");
- public static final ResourceLocation colour_selector_dot = new ResourceLocation("notenoughupdates:colour_selector_dot.png");
- public static final ResourceLocation colour_selector_bar = new ResourceLocation("notenoughupdates:colour_selector_bar.png");
- public static final ResourceLocation colour_selector_bar_alpha = new ResourceLocation("notenoughupdates:colour_selector_bar_alpha.png");
- public static final ResourceLocation colour_selector_chroma = new ResourceLocation("notenoughupdates:colour_selector_chroma.png");
-
- public static final ResourceLocation accessory_bag_overlay = new ResourceLocation("notenoughupdates:accessory_bag_overlay.png");
-
- public static final ResourceLocation quickcommand_background = new ResourceLocation("notenoughupdates:quickcommand_background.png");
-
- public static final ResourceLocation gamemodes = new ResourceLocation("notenoughupdates:gamemodes.png");
- public static final ResourceLocation radial_square_off = new ResourceLocation("notenoughupdates:radial_square_off.png");
- public static final ResourceLocation radial_square_on = new ResourceLocation("notenoughupdates:radial_square_on.png");
- public static final ResourceLocation radial_circle_off = new ResourceLocation("notenoughupdates:radial_circle_off.png");
- public static final ResourceLocation radial_circle_on = new ResourceLocation("notenoughupdates:radial_circle_on.png");
-
- public static final ResourceLocation dungeon_chest_worth = new ResourceLocation("notenoughupdates:dungeon_chest_worth.png");
-
- public static final ResourceLocation auction_view = new ResourceLocation("notenoughupdates:auction_view.png");
- public static final ResourceLocation auction_accept = new ResourceLocation("notenoughupdates:auction_accept.png");
- public static final ResourceLocation auction_price = new ResourceLocation("notenoughupdates:auction_price.png");
- public static final ResourceLocation auction_view_buttons = new ResourceLocation("notenoughupdates:auction_view_buttons.png");
-
- public static final ResourceLocation logo = new ResourceLocation("notenoughupdates:logo.png");
- public static final ResourceLocation logo_fg = new ResourceLocation("notenoughupdates:logo_fg.png");
- public static final ResourceLocation logo_bg = new ResourceLocation("notenoughupdates:logo_bg.png");
-
- public static final ResourceLocation sort_all = new ResourceLocation("notenoughupdates:sort_all.png");
- public static final ResourceLocation sort_mob = new ResourceLocation("notenoughupdates:sort_mob.png");
- public static final ResourceLocation sort_pet = new ResourceLocation("notenoughupdates:sort_pet.png");
- public static final ResourceLocation sort_tool = new ResourceLocation("notenoughupdates:sort_weapon.png");
- public static final ResourceLocation sort_armor = new ResourceLocation("notenoughupdates:sort_armor.png");
- public static final ResourceLocation sort_accessory = new ResourceLocation("notenoughupdates:sort_accessory.png");
- public static final ResourceLocation sort_all_active = new ResourceLocation("notenoughupdates:sort_all_active.png");
- public static final ResourceLocation sort_mob_active = new ResourceLocation("notenoughupdates:sort_mob_active.png");
- public static final ResourceLocation sort_pet_active = new ResourceLocation("notenoughupdates:sort_pet_active.png");
- public static final ResourceLocation sort_tool_active = new ResourceLocation("notenoughupdates:sort_weapon_active.png");
- public static final ResourceLocation sort_armor_active = new ResourceLocation("notenoughupdates:sort_armor_active.png");
- public static final ResourceLocation sort_accessory_active = new ResourceLocation("notenoughupdates:sort_accessory_active.png");
-
- public static final ResourceLocation order_alphabetical = new ResourceLocation("notenoughupdates:order_alphabetical.png");
- public static final ResourceLocation order_rarity = new ResourceLocation("notenoughupdates:order_rarity.png");
- public static final ResourceLocation order_value = new ResourceLocation("notenoughupdates:order_value.png");
- public static final ResourceLocation order_alphabetical_active = new ResourceLocation("notenoughupdates:order_alphabetical_active.png");
- public static final ResourceLocation order_rarity_active = new ResourceLocation("notenoughupdates:order_rarity_active.png");
- public static final ResourceLocation order_value_active = new ResourceLocation("notenoughupdates:order_value_active.png");
- public static final ResourceLocation ascending_overlay = new ResourceLocation("notenoughupdates:ascending_overlay.png");
- public static final ResourceLocation descending_overlay = new ResourceLocation("notenoughupdates:descending_overlay.png");
-
- public static final ResourceLocation BAR = new ResourceLocation("notenoughupdates:core/bar.png");
- public static final ResourceLocation BAR_ONE = new ResourceLocation("notenoughupdates:core/bar_1.png");
- public static final ResourceLocation BAR_TWO = new ResourceLocation("notenoughupdates:core/bar_2.png");
- public static final ResourceLocation BAR_THREE = new ResourceLocation("notenoughupdates:core/bar_3.png");
- public static final ResourceLocation BAR_ON = new ResourceLocation("notenoughupdates:core/bar_on.png");
- public static final ResourceLocation OFF = new ResourceLocation("notenoughupdates:core/toggle_off.png");
- public static final ResourceLocation ONE = new ResourceLocation("notenoughupdates:core/toggle_1.png");
- public static final ResourceLocation TWO = new ResourceLocation("notenoughupdates:core/toggle_2.png");
- public static final ResourceLocation THREE = new ResourceLocation("notenoughupdates:core/toggle_3.png");
- public static final ResourceLocation ON = new ResourceLocation("notenoughupdates:core/toggle_on.png");
-
- public static final ResourceLocation slider_off_cap = new ResourceLocation("notenoughupdates:core/slider/slider_off_cap.png");
- public static final ResourceLocation slider_off_notch = new ResourceLocation("notenoughupdates:core/slider/slider_off_notch.png");
- public static final ResourceLocation slider_off_segment = new ResourceLocation("notenoughupdates:core/slider/slider_off_segment.png");
- public static final ResourceLocation slider_on_cap = new ResourceLocation("notenoughupdates:core/slider/slider_on_cap.png");
- public static final ResourceLocation slider_on_notch = new ResourceLocation("notenoughupdates:core/slider/slider_on_notch.png");
- public static final ResourceLocation slider_on_segment = new ResourceLocation("notenoughupdates:core/slider/slider_on_segment.png");
- public static final ResourceLocation slider_button_new = new ResourceLocation("notenoughupdates:core/slider/slider_button.png");
+ private GuiTextures() {
+ } // Not instantiable. Use import static to access class members.
+
+ public static final ResourceLocation itemPaneTabArrow =
+ new ResourceLocation("notenoughupdates:item_pane_tab_arrow.png");
+ //public static final ResourceLocation prev = new ResourceLocation("notenoughupdates:prev.png");
+ //public static final ResourceLocation next = new ResourceLocation("notenoughupdates:next.png");
+ public static final ResourceLocation rightarrow_overlay =
+ new ResourceLocation("notenoughupdates:rightarrow_overlay.png");
+ public static final ResourceLocation rightarrow = new ResourceLocation("notenoughupdates:rightarrow.png");
+ public static final ResourceLocation close = new ResourceLocation("notenoughupdates:close.png");
+ public static final ResourceLocation settings = new ResourceLocation("notenoughupdates:settings.png");
+
+ public static final ResourceLocation off = new ResourceLocation("notenoughupdates:off.png");
+ public static final ResourceLocation on = new ResourceLocation("notenoughupdates:on.png");
+ public static final ResourceLocation help = new ResourceLocation("notenoughupdates:help.png");
+ public static final ResourceLocation slider_off = new ResourceLocation("notenoughupdates:slider_off.png");
+ public static final ResourceLocation slider_on = new ResourceLocation("notenoughupdates:slider_on.png");
+ public static final ResourceLocation slider_off_large = new ResourceLocation("notenoughupdates:slider_off_large.png");
+ public static final ResourceLocation slider_on_large = new ResourceLocation("notenoughupdates:slider_on_large.png");
+ public static final ResourceLocation slider_button = new ResourceLocation("notenoughupdates:slider_button.png");
+
+ public static final ResourceLocation DISCORD = new ResourceLocation("notenoughupdates:social/discord.png");
+ public static final ResourceLocation GITHUB = new ResourceLocation("notenoughupdates:social/github.png");
+ public static final ResourceLocation PATREON = new ResourceLocation("notenoughupdates:social/patreon.png");
+ public static final ResourceLocation TWITTER = new ResourceLocation("notenoughupdates:social/twitter.png");
+ public static final ResourceLocation YOUTUBE = new ResourceLocation("notenoughupdates:social/youtube.png");
+ public static final ResourceLocation TWITCH = new ResourceLocation("notenoughupdates:social/twitch.png");
+
+ public static final ResourceLocation item_mask = new ResourceLocation("notenoughupdates:item_mask.png");
+ public static final ResourceLocation item_haschild = new ResourceLocation("notenoughupdates:item_haschild.png");
+ public static final ResourceLocation button_tex = new ResourceLocation("notenoughupdates:button.png");
+ public static final ResourceLocation button_fsr =
+ new ResourceLocation("notenoughupdates:FSR_do_not_texture_this_please.png");
+
+ public static final ResourceLocation setting_border = new ResourceLocation("notenoughupdates:setting_border.png");
+
+ public static final ResourceLocation button_white = new ResourceLocation("notenoughupdates:button_white.png");
+ public static final ResourceLocation colour_selector_dot =
+ new ResourceLocation("notenoughupdates:colour_selector_dot.png");
+ public static final ResourceLocation colour_selector_bar =
+ new ResourceLocation("notenoughupdates:colour_selector_bar.png");
+ public static final ResourceLocation colour_selector_bar_alpha =
+ new ResourceLocation("notenoughupdates:colour_selector_bar_alpha.png");
+ public static final ResourceLocation colour_selector_chroma =
+ new ResourceLocation("notenoughupdates:colour_selector_chroma.png");
+
+ public static final ResourceLocation accessory_bag_overlay =
+ new ResourceLocation("notenoughupdates:accessory_bag_overlay.png");
+
+ public static final ResourceLocation quickcommand_background =
+ new ResourceLocation("notenoughupdates:quickcommand_background.png");
+
+ public static final ResourceLocation gamemodes = new ResourceLocation("notenoughupdates:gamemodes.png");
+ public static final ResourceLocation radial_square_off =
+ new ResourceLocation("notenoughupdates:radial_square_off.png");
+ public static final ResourceLocation radial_square_on = new ResourceLocation("notenoughupdates:radial_square_on.png");
+ public static final ResourceLocation radial_circle_off =
+ new ResourceLocation("notenoughupdates:radial_circle_off.png");
+ public static final ResourceLocation radial_circle_on = new ResourceLocation("notenoughupdates:radial_circle_on.png");
+
+ public static final ResourceLocation dungeon_chest_worth =
+ new ResourceLocation("notenoughupdates:dungeon_chest_worth.png");
+
+ public static final ResourceLocation auction_view = new ResourceLocation("notenoughupdates:auction_view.png");
+ public static final ResourceLocation auction_accept = new ResourceLocation("notenoughupdates:auction_accept.png");
+ public static final ResourceLocation auction_price = new ResourceLocation("notenoughupdates:auction_price.png");
+ public static final ResourceLocation auction_view_buttons =
+ new ResourceLocation("notenoughupdates:auction_view_buttons.png");
+
+ public static final ResourceLocation logo = new ResourceLocation("notenoughupdates:logo.png");
+ public static final ResourceLocation logo_fg = new ResourceLocation("notenoughupdates:logo_fg.png");
+ public static final ResourceLocation logo_bg = new ResourceLocation("notenoughupdates:logo_bg.png");
+
+ public static final ResourceLocation sort_all = new ResourceLocation("notenoughupdates:sort_all.png");
+ public static final ResourceLocation sort_mob = new ResourceLocation("notenoughupdates:sort_mob.png");
+ public static final ResourceLocation sort_pet = new ResourceLocation("notenoughupdates:sort_pet.png");
+ public static final ResourceLocation sort_tool = new ResourceLocation("notenoughupdates:sort_weapon.png");
+ public static final ResourceLocation sort_armor = new ResourceLocation("notenoughupdates:sort_armor.png");
+ public static final ResourceLocation sort_accessory = new ResourceLocation("notenoughupdates:sort_accessory.png");
+ public static final ResourceLocation sort_all_active = new ResourceLocation("notenoughupdates:sort_all_active.png");
+ public static final ResourceLocation sort_mob_active = new ResourceLocation("notenoughupdates:sort_mob_active.png");
+ public static final ResourceLocation sort_pet_active = new ResourceLocation("notenoughupdates:sort_pet_active.png");
+ public static final ResourceLocation sort_tool_active =
+ new ResourceLocation("notenoughupdates:sort_weapon_active.png");
+ public static final ResourceLocation sort_armor_active =
+ new ResourceLocation("notenoughupdates:sort_armor_active.png");
+ public static final ResourceLocation sort_accessory_active =
+ new ResourceLocation("notenoughupdates:sort_accessory_active.png");
+
+ public static final ResourceLocation order_alphabetical =
+ new ResourceLocation("notenoughupdates:order_alphabetical.png");
+ public static final ResourceLocation order_rarity = new ResourceLocation("notenoughupdates:order_rarity.png");
+ public static final ResourceLocation order_value = new ResourceLocation("notenoughupdates:order_value.png");
+ public static final ResourceLocation order_alphabetical_active =
+ new ResourceLocation("notenoughupdates:order_alphabetical_active.png");
+ public static final ResourceLocation order_rarity_active =
+ new ResourceLocation("notenoughupdates:order_rarity_active.png");
+ public static final ResourceLocation order_value_active =
+ new ResourceLocation("notenoughupdates:order_value_active.png");
+ public static final ResourceLocation ascending_overlay =
+ new ResourceLocation("notenoughupdates:ascending_overlay.png");
+ public static final ResourceLocation descending_overlay =
+ new ResourceLocation("notenoughupdates:descending_overlay.png");
+
+ public static final ResourceLocation BAR = new ResourceLocation("notenoughupdates:core/bar.png");
+ public static final ResourceLocation BAR_ONE = new ResourceLocation("notenoughupdates:core/bar_1.png");
+ public static final ResourceLocation BAR_TWO = new ResourceLocation("notenoughupdates:core/bar_2.png");
+ public static final ResourceLocation BAR_THREE = new ResourceLocation("notenoughupdates:core/bar_3.png");
+ public static final ResourceLocation BAR_ON = new ResourceLocation("notenoughupdates:core/bar_on.png");
+ public static final ResourceLocation OFF = new ResourceLocation("notenoughupdates:core/toggle_off.png");
+ public static final ResourceLocation ONE = new ResourceLocation("notenoughupdates:core/toggle_1.png");
+ public static final ResourceLocation TWO = new ResourceLocation("notenoughupdates:core/toggle_2.png");
+ public static final ResourceLocation THREE = new ResourceLocation("notenoughupdates:core/toggle_3.png");
+ public static final ResourceLocation ON = new ResourceLocation("notenoughupdates:core/toggle_on.png");
+
+ public static final ResourceLocation slider_off_cap =
+ new ResourceLocation("notenoughupdates:core/slider/slider_off_cap.png");
+ public static final ResourceLocation slider_off_notch =
+ new ResourceLocation("notenoughupdates:core/slider/slider_off_notch.png");
+ public static final ResourceLocation slider_off_segment =
+ new ResourceLocation("notenoughupdates:core/slider/slider_off_segment.png");
+ public static final ResourceLocation slider_on_cap =
+ new ResourceLocation("notenoughupdates:core/slider/slider_on_cap.png");
+ public static final ResourceLocation slider_on_notch =
+ new ResourceLocation("notenoughupdates:core/slider/slider_on_notch.png");
+ public static final ResourceLocation slider_on_segment =
+ new ResourceLocation("notenoughupdates:core/slider/slider_on_segment.png");
+ public static final ResourceLocation slider_button_new =
+ new ResourceLocation("notenoughupdates:core/slider/slider_button.png");
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/HastebinUploader.java b/src/main/java/io/github/moulberry/notenoughupdates/util/HastebinUploader.java
index ac8d5cfc..9cbad402 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/HastebinUploader.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/HastebinUploader.java
@@ -14,48 +14,52 @@ import java.nio.charset.StandardCharsets;
* @author ThatGravyBoat
*/
public class HastebinUploader {
- private static final String UPLOAD_URL = "https://hst.sh/documents";
- private static final String RETURN_URL = "https://hst.sh/";
- private static final String RAW_RETURN_URL = "https://hst.sh/raw/";
+ private static final String UPLOAD_URL = "https://hst.sh/documents";
+ private static final String RETURN_URL = "https://hst.sh/";
+ private static final String RAW_RETURN_URL = "https://hst.sh/raw/";
- private static final Gson GSON = new Gson();
+ private static final Gson GSON = new Gson();
- /**
- * @param data the data you want to upload
- * @par