Commit graph

68 commits

Author SHA1 Message Date
Alex
7cd054175a
Optimize imports & add spaces (#802)
* Optimize imports

* Revert "Optimize imports"

This reverts commit beb00d647f.

* Optimize imports 2

* Revert line length changes

* More optimized imports

* Revert again

* More import cleanup
2024-04-28 16:43:27 +02:00
Alex
d74e292201 Revamp flag system (#789) 2024-04-24 08:58:52 +02:00
Alex
fa6b59ad02 Move package/license to GeyserMC, gradle conventions and submodules (#782)
* Change packages

* Move everything to a protocol submodule

* gradle conventions, update license

---------

Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com>
2024-04-24 08:58:19 +02:00
Alex
4e54830fbc Remove unused exceptions, use java 9+ features and checkerframework, other cleanup (#780) 2024-04-24 08:50:31 +02:00
basaigh
a90e2f270a Add full support for the transfer packet
I hope
2024-04-11 23:39:55 +01:00
basaigh
7cdfa6ef36 24w04a 2024-02-10 20:55:38 +00:00
basaigh
8f1834d906 Update tests 2024-02-07 23:10:29 +00:00
Alex
ff317f1a9a
Migrate to gradle, fix examples (#769) 2023-12-19 13:01:53 -05:00
basaigh
1c57135e6c 1.20.2-pre1 2023-09-06 18:06:21 +01:00
basaigh
48c189f651 23w31a part 2 electric boogaloo
Fixed tests, updated the login cycle and some misc touch-ups
2023-09-06 18:06:19 +01:00
Kas-tle
910a0009b9
Merge packetlib w/ commit history 2023-03-09 21:38:07 +00:00
D3ATHBRINGER13
48ea5a2c53
Update the example to 1.19.2 (#712)
* Update the example to 1.19.2 and fix the malformed network codec left in the tests.

* We really need to decide on a standard name for this.
2022-11-05 16:30:19 -04:00
Camotoy
54fc9f0750
Rename MessageType; use Object2IntMap for Statistics 2022-06-15 18:28:40 -04:00
Camotoy
3023c4d1b0
The MessageType registry is flexible 2022-06-08 22:26:01 -04:00
RednedEpic
3a51f530c6 PacketLib 3.0
Changes:
- Removed NetInput/NetOutput and replaced them with ByteBuf
- Added PacketSerializer to PacketDefinition
- Added packet codecs which implementations can supply with custom readers/writers for buffers
2022-05-29 12:40:39 -05:00
circuit10
55fe033136
Add new 1.18 tags in example (#678) 2021-12-09 14:02:32 -05:00
Camotoy
8eca14983a Update for PacketLib changes 2021-11-24 23:33:39 -05:00
Camotoy
9e38c61927 Remove allocations for packet receive and send events
These were just replaced with functions that call the session and packet.
2021-11-24 23:32:14 -05:00
Camotoy
62492c961a
Entity metadata refactor; remove some MagicValues usages 2021-11-15 14:51:03 -05:00
RednedEpic
5b4ba5b8d0 Merge branch 'feature/1.18' into feature/codec-refactor 2021-11-13 20:10:44 -06:00
RednedEpic
64410dbe48 Implement packet codec system to remove expensive protocol state switches
With the way this lib used to previously work, any time the protocol state changed, all the packet maps got cleared and had new packets inserted into them depending on the protocol state. This was unnecessarily expensive and although called rarely, it was not ideal.

The packet codecs added are static, immutable and can be reused across sessions. The codec system also opens up the door for multi-version capability in the future.
2021-11-13 16:44:55 -06:00
RednedEpic
459e5287cc Update examples to reflect changes done 2021-11-13 12:15:43 -06:00
Camotoy
73659fe559
Update example 2021-11-12 17:37:25 -05:00
D3ATHBRINGER13
8fcf4df994
Refactor to use Mojmap packet names (#662)
This allows packet name parity with Minecraft itself.
2021-11-12 12:59:12 -05:00
Steveice10
270261ba2d Update to latest MCAuthLib commit. 2021-09-06 15:05:31 -07:00
Steveice10
893cc683cb Update to latest PacketLib commit. 2021-04-20 18:28:14 -07:00
Steveice10
bcf5232781 Tidy up auth data handling. 2021-03-30 11:23:41 -07:00
Steveice10
19a9b2be35 Collapse Client and Server into *ClientSession and ConnectionListener. 2021-01-15 12:45:06 -08:00
Steveice10
ccbd52dffd Replace Message API with Adventure component parsing. 2020-11-21 13:42:36 -08:00
Steveice10
c38a9fe61e Add missing imports 2020-10-15 14:56:16 -07:00
Steveice10
2ac116a075 Revise chunk storage code based on latest logic. 2020-10-13 16:18:56 -07:00
rtm516
0d78575081
Fix dimension tag in example 2020-10-10 17:52:13 +01:00
Steveice10
6c66d7e27b Replace specifying proxy with specifying custom auth service clients. 2020-08-29 11:16:34 -07:00
Steveice10
46b46001f6 Remove equals and hashCode ignore from chunks and fix example. 2020-07-10 17:31:26 -07:00
RednedEpic
795ae325b8 Resolve merge conflicts 2020-06-20 15:52:20 -05:00
Steveice10
f142eab3a2 Overhaul JSON message classes to be immutable and use a builder pattern. 2020-06-06 14:54:40 -07:00
Steveice10
1840d5aa3d Remove server list icon decoding as ImageIO/BufferedImage do not exist on Android. 2020-06-03 14:58:49 -07:00
RednedEpic
20f73c5e1e Update to 20w20a 2020-05-13 16:06:26 -05:00
Steveice10
3c6cbb2cff Update for PacketLib changes. 2020-02-26 18:22:38 -08:00
Steveice10
6663b2e66f Fix example code. 2019-12-17 16:45:32 -08:00
Steveice10
4dd7416966 Use Lombok to reduce boilerplate code, add some basic packet read/write tests.
Also implements declare commands and declare recipes packets.
2019-08-17 22:59:58 -07:00
Steveice10
8a81b14b51 Fix example, bump OpenNBT version to 1.1 2018-07-02 15:17:00 -07:00
Steveice10
34c3504e6a Fix hang closing server in example, update PacketLib version. 2018-06-03 11:43:08 -07:00
Steveice10
dae57d1090 Clean up and format code. 2017-09-01 12:01:46 -07:00
Steveice10
661faf9541 Migrate away from spacehq.org 2017-03-01 16:33:38 -08:00
Steveice10
4608261e99 Migrate away from spacehq.org 2017-03-01 16:09:48 -08:00
Steven Smith
480f339742 15w39c, major restructuring. 2015-09-24 20:51:43 -07:00
Steven Smith
ce140f43d6 Cleanup, add wait flag to Server.bind, fix connection errors not throwing DisconnectedEvent. 2015-08-21 19:15:36 -07:00
Steven Smith
aff6600deb Update for MCAuthLib changes. 2015-07-22 13:49:42 -07:00
Steven Smith
78eb55a7c3 Update for MCAuthLib changes. 2015-07-22 13:40:13 -07:00