Chest GUI add builder with name function
This commit is contained in:
parent
0fb37b1633
commit
e1f79b6af7
2 changed files with 7 additions and 1 deletions
|
@ -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.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=GPLv3
|
mod_license=GPLv3
|
||||||
# The mod version. See https://semver.org/
|
# 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.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
@ -28,6 +28,12 @@ public class ChestGUIButton
|
||||||
*/
|
*/
|
||||||
private Vector2i position;
|
private Vector2i position;
|
||||||
|
|
||||||
|
public ChestGUIButton withName(String name)
|
||||||
|
{
|
||||||
|
this.name=name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public ChestGUIButton(Item icon, String name, Runnable callback, Vector2i position)
|
public ChestGUIButton(Item icon, String name, Runnable callback, Vector2i position)
|
||||||
{
|
{
|
||||||
this.icon = icon;
|
this.icon = icon;
|
||||||
|
|
Reference in a new issue