SilkMC / silk

Silk is a Minecraft API for Kotlin - targetting Fabric, Quilt and Paper
https://silkmc.net/silk/docs/
GNU General Public License v3.0
100 stars 12 forks source link

Add Colors class #45

Closed mooziii closed 11 months ago

mooziii commented 1 year ago

Taken from KSpigot :)

kxmpxtxnt commented 1 year ago

why is this in java and not kotlin?

mooziii commented 1 year ago

If it was written in Kotlin, when someones wants to use this in a java class (mixins as an example) he had to use Colors.INSTANCE.RED instead of Colors.RED, also the kspigot class was written in java and I was lazy 🤫

l4zs commented 1 year ago

iirc the color preview thing only works with java comments

kxmpxtxnt commented 1 year ago

iirc the color preview thing only works with java comments

ah i remember, i think i already had the question in the discord xd, thank you