SomeSourceCode / SomeGuiApi

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

Implement cycle detection #26

Closed SomeSourceCode closed 2 months ago

SomeSourceCode commented 2 months ago

Description

Adds cycle detection as requested in #21. This is achieved through a new ObservableList implementation called VetoableListDecorator, which allows Parents to veto changes that would create a cycle in the node hierarchy. Additionally, Parent checks for invalid nodes, such as duplicates or null values.