Hypejet / Jet

✈️ A brand new Minecraft server software made from scratch
GNU General Public License v3.0
25 stars 0 forks source link

Initial project structure #3

Closed Codestech1 closed 5 months ago

Codestech1 commented 5 months ago

Adds an initial gradle project and packet structure.

Codestech1 commented 5 months ago

Modifying this pull request to create a non-breaking API via interfaces

Codestech1 commented 5 months ago

Serializing NBT text components is not possible for now, because kyori has not a serializer for them yet. https://github.com/KyoriPowered/adventure/issues/995

Window5000 commented 5 months ago

We should create an event system and integrate it with the packet system before merging, ie. the Packet class should extend Event.

Small thing: if fx. B Event extends A event, then when B is called it should also call A event

Window5000 commented 5 months ago

ie calling an event should also call its parents

Codestech1 commented 5 months ago

We should create an event system and integrate it with the packet system before merging, ie. the Packet class should extend Event.

Small thing: if fx. B Event extends A event, then when B is called it should also call A event

The goal for now was achieving a working connection between server and client and a basic packet system. Wouldn't it be better to make an event system in another PR?

Window5000 commented 5 months ago

well fx. the requeststatus packet will call an event, which will send an respondstatus packet instead of it comming directly from the other packet

Codestech1 commented 5 months ago

well fx. the requeststatus packet will call an event, which will send an respondstatus packet instead of it comming directly from the other packet

I could start making an event system now, but in another PR.