node-minecraft-protocol icon indicating copy to clipboard operation
node-minecraft-protocol copied to clipboard

Make protocol data autocompletable (and Remove the "hardcoding" of states)

Open rom1504 opened this issue 10 years ago • 4 comments

https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/src/states.js

There is no point in doing that and make stuff less flexible

rom1504 avatar Sep 29 '15 20:09 rom1504

there is a point : autocompletion in some IDEs works. If I could hardcode packets in the same way, I would.

roblabla avatar Sep 30 '15 10:09 roblabla

well I guess we could figure out a way to make things autocompletable (by generating stuff in dist/ or something), but I think there's no need to actually hardcode this.

rom1504 avatar Sep 30 '15 11:09 rom1504

With the work done in ProtoDef, it's now very clear that this can be a natural consequence of a protodef compiler.

rom1504 avatar Mar 10 '17 15:03 rom1504

one way to do it is https://github.com/PrismarineJS/node-minecraft-data/pull/24

rom1504 avatar Aug 26 '18 00:08 rom1504