-
Notifications
You must be signed in to change notification settings - Fork 12
GuiWindow
WolfyScript edited this page Apr 15, 2021
·
7 revisions
They contain local Buttons and manage the logic to render the Buttons into the inventory.
They are very similar to the GuiCluster and you need to create a class and extend it.
public class YourWindow extends GuiWindow<YourCache> {
public YourWindow(GuiCluster<YourCache> guiCluster, String key, int size) {
super(guiCluster, key, size);
}
@Override
public void onInit() {
//Called on initialization. Used to register Buttons.
registerButton();
}
@Override
public void onUpdateSync(GuiUpdate<YourCache> guiUpdate) {
//Updated sync
}
@Override
public void onUpdateAsync(GuiUpdate<YourCache> update) {
//Updated async
}
}| Home
| Registry
-
Introduction
- Structure
- InventoryAPI
- Register GuiCluster
- CustomCache
- GuiClusters
- GuiWindow
-
Buttons
- Dummy
- Action
- Toggle
- ChatInput
- MultipleChoice
-
ButtonStates
- ButtonFunctions
- ButtonAction
- ButtonPostAction
- ButtonPreRender
- ButtonRender
- ButtonFunctions