SomeSourceCode / SomeGuiApi

A Paper API to create interactable GUIs using Minecraft Inventories, ...
MIT License
1 stars 0 forks source link

Implement parent guis #29

Closed SomeSourceCode closed 1 month ago

SomeSourceCode commented 1 month ago

Description

This pull request adds parent GUIs. Every gui can have a parent GUI that it navigates to when it's closed by the player. The creation of parent cycles, that is when the GUI references itself somewhere in the parent hierarchy prevented by throwing an IllegalArgumentException.

Note

The title reflecting the parent-child relationship were considered but not implemented due to significant challenges with the Adventure Component API.