Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
library:inventorygui:usage [2020/09/22 17:15] – created phoenix616library:inventorygui:usage [2020/11/27 12:41] – [Dynamic Element] Add viewer phoenix616
Line 115: Line 115:
 the DynamicGuiElement's slot character though. the DynamicGuiElement's slot character though.
 ```java ```java
-gui.addElement(new DynamicGuiElement('d', () -> {+gui.addElement(new DynamicGuiElement('d', (viewer) -> {
     return new StaticGuiElement('d', new ItemStack (Material.CLOCK),      return new StaticGuiElement('d', new ItemStack (Material.CLOCK), 
         click -> {         click -> {