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.
Description
This pull request adds
parent GUI
s. Every gui can have aparent GUI
that it navigates to when it's closed by the player. The creation of parent cycles, that is when theGUI
references itself somewhere in the parent hierarchy prevented by throwing anIllegalArgumentException
.Note
The
title
reflecting the parent-child relationship were considered but not implemented due to significant challenges with the Adventure Component API.