Closed Sparky983 closed 1 year ago
Maintaining the GUI DSL is a pain. Every field must be stored since they cannot be retrieved from the Builder (easily).
Builder
I see two solutions:
This is self-explanatory.
This would mean the chest function would be changed to look something like this:
chest
public fun chest(init: Chest.Builder.() -> Unit): Chest = Gui.chest().apply(init).build()
This may be reconsidered later.
Maintaining the GUI DSL is a pain. Every field must be stored since they cannot be retrieved from the
Builder
(easily).I see two solutions:
1. No More Kotlin
This is self-explanatory.
2. Add getters to the builders
This would mean the
chest
function would be changed to look something like this: