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;