From ea135c52418855f04ccb899ec84a582b0d6b8634 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Sat, 20 Jan 2024 14:40:15 +0100 Subject: [PATCH] Release 1.4.0 --- gradle.properties | 2 +- .../de/florianmichael/uiutilsreborn/UIUtilsReborn.java | 8 ++++---- .../florianmichael/uiutilsreborn/gui/FabricateScreen.java | 6 ++++-- .../uiutilsreborn/widget/ExploitButtonWidget.java | 4 ++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/gradle.properties b/gradle.properties index 515295c..98af004 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ yarn_mappings=1.20.4+build.3 loader_version=0.15.3 # mod -mod_version=1.4.0-SNAPSHOT +mod_version=1.4.0 maven_group=de.florianmichael archives_base_name=ui-utils-reborn diff --git a/src/main/java/de/florianmichael/uiutilsreborn/UIUtilsReborn.java b/src/main/java/de/florianmichael/uiutilsreborn/UIUtilsReborn.java index bdb0c8a..99f8854 100644 --- a/src/main/java/de/florianmichael/uiutilsreborn/UIUtilsReborn.java +++ b/src/main/java/de/florianmichael/uiutilsreborn/UIUtilsReborn.java @@ -41,11 +41,11 @@ public class UIUtilsReborn implements ClientModInitializer { private static boolean enabled = true; - public final static int BOUND = 5; - public final static int BUTTON_DIFF = ExploitButtonWidget.DEFAULT_HEIGHT + 3; + public static final int BOUND = 5; + public static final int BUTTON_DIFF = ExploitButtonWidget.DEFAULT_HEIGHT + 3; - private final static List>> exploitTracker = new ArrayList<>(); - private final static List> delayedUIPackets = new ArrayList<>(); + private static final List>> exploitTracker = new ArrayList<>(); + private static final List> delayedUIPackets = new ArrayList<>(); private static boolean cancelSignPackets; diff --git a/src/main/java/de/florianmichael/uiutilsreborn/gui/FabricateScreen.java b/src/main/java/de/florianmichael/uiutilsreborn/gui/FabricateScreen.java index 8cfc675..6190d31 100644 --- a/src/main/java/de/florianmichael/uiutilsreborn/gui/FabricateScreen.java +++ b/src/main/java/de/florianmichael/uiutilsreborn/gui/FabricateScreen.java @@ -40,8 +40,8 @@ public class FabricateScreen extends Screen { - private final static int DEFAULT_WIDTH = 300; - private final static int DEFAULT_HEIGHT = 20; + private static final int DEFAULT_WIDTH = 300; + private static final int DEFAULT_HEIGHT = 20; private final Screen parent; private CurrentPacket currentPacket = CurrentPacket.CLICK_SLOT; @@ -218,6 +218,7 @@ public void render(DrawContext drawContext, int mouseX, int mouseY, float delta) } public enum CurrentPacket { + CLICK_SLOT("Click Slot"), BUTTON_CLICK("Button Click"); @@ -230,6 +231,7 @@ public enum CurrentPacket { public String getDisplay() { return display; } + } } diff --git a/src/main/java/de/florianmichael/uiutilsreborn/widget/ExploitButtonWidget.java b/src/main/java/de/florianmichael/uiutilsreborn/widget/ExploitButtonWidget.java index d45dbc5..4e5d7c6 100644 --- a/src/main/java/de/florianmichael/uiutilsreborn/widget/ExploitButtonWidget.java +++ b/src/main/java/de/florianmichael/uiutilsreborn/widget/ExploitButtonWidget.java @@ -23,8 +23,8 @@ public class ExploitButtonWidget extends ButtonWidget { - public final static int DEFAULT_WIDTH = 110; - public final static int DEFAULT_HEIGHT = 20; + public static final int DEFAULT_WIDTH = 110; + public static final int DEFAULT_HEIGHT = 20; public ExploitButtonWidget(Text message, PressAction onPress) { super(