Sparky983 / vision-gui

A minimal GUI API for Paper
http://vision.sparky983.me
MIT License
15 stars 0 forks source link

No Kotlin? #144

Closed Sparky983 closed 1 year ago

Sparky983 commented 1 year ago

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
  2. Add getters to the builders

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:

public fun chest(init: Chest.Builder.() -> Unit): Chest = Gui.chest().apply(init).build()
Sparky983 commented 1 year ago

This may be reconsidered later.