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
|
@ -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;
|
||||
|
|
Reference in a new issue