From e1f79b6af7b288157104366c1e3f6c1081c041b4 Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 2 Jan 2024 19:11:48 -0700 Subject: [PATCH] Chest GUI add builder with name function --- gradle.properties | 2 +- .../dev/zontreck/libzontreck/chestgui/ChestGUIButton.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index b0a9f82..334d1ed 100644 --- a/gradle.properties +++ b/gradle.properties @@ -53,7 +53,7 @@ mod_name=Zontreck Library Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=GPLv3 # The mod version. See https://semver.org/ -mod_version=1.10.010224.1758 +mod_version=1.10.010224.1909 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/dev/zontreck/libzontreck/chestgui/ChestGUIButton.java b/src/main/java/dev/zontreck/libzontreck/chestgui/ChestGUIButton.java index 88a5984..903bd65 100644 --- a/src/main/java/dev/zontreck/libzontreck/chestgui/ChestGUIButton.java +++ b/src/main/java/dev/zontreck/libzontreck/chestgui/ChestGUIButton.java @@ -28,6 +28,12 @@ public class ChestGUIButton */ private Vector2i position; + public ChestGUIButton withName(String name) + { + this.name=name; + return this; + } + public ChestGUIButton(Item icon, String name, Runnable callback, Vector2i position) { this.icon = icon;