File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ Now I don't know about OTHER frameworks, but Woody provides some special feature
66
66
guiItem. setItemStack(item);
67
67
guiItem. setAction(event - > ... ); // optional
68
68
gui. updateItem(20 , item);
69
- gui. open(... );
69
+ gui. open(... ); // only if you need
70
70
```
71
71
72
72
Horrendous ! What is this ? it may even look the same in raw spigot inventories! maybe slightly better, slightly worse.
@@ -78,12 +78,12 @@ Now I don't know about OTHER frameworks, but Woody provides some special feature
78
78
.done(); // new MenuItem instance
79
79
menuItem. setClickAction(event - > ... ); // optional
80
80
menu. setItem(20 , menuItem);
81
- menu. open(... );
81
+ menu. open(... ); // only if you need
82
82
83
83
// even cleaner option if you don't use setClickAction
84
84
menu. setItem(20 , menu. getItem(20 ). editor() // again, do what you want
85
85
.done());
86
- menu. open(... );
86
+ menu. open(... ); // only if you need
87
87
```
88
88
Now you' re going to likely write a lot less, have realistically the same performance impact and enjoy readable & concise code.
89
89
You can’t perform that action at this time.
0 commit comments