isXander / YetAnotherConfigLib

YetAnotherConfigLib (yacl) is just that. A builder-based configuration library for Minecraft.
GNU Lesser General Public License v3.0
96 stars 37 forks source link

Support for Listeners on ListOptions #55

Closed Crendgrim closed 1 year ago

Crendgrim commented 1 year ago

Regular options can register a listener that triggers on value change. It would be great to have this option also for ListOptions, both to see when the list itself changes, and when the inner controller changes a value in the list. Personally, I mostly need the second.

Crendgrim commented 1 year ago

Ah, I figured out that I can manually add a listener to the ListOption object after it was constructed. So the actual feature request would be to expose this in the Builder already.

isXander commented 1 year ago

Yeah seems like I missed this on the builder.