Chest GUI add builder with name function

This commit is contained in:
zontreck 2024-01-02 19:11:48 -07:00
parent 0fb37b1633
commit e1f79b6af7
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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;