Commit graph

40 commits

Author SHA1 Message Date
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
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
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
Steven Smith
480f339742 15w39c, major restructuring. 2015-09-24 20:51:43 -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
Steven Smith
cc48874232 Set authentication proxy on actual login in example. 2015-07-22 11:25:05 -07:00
Steven Smith
d29c5f3418 Update for MCAuthLib changes. 2015-07-21 21:41:08 -07:00
Steven Smith
81024b88ff Refactor ProtocolMode to SubProtocol, ProtocolConstants to MinecraftConstants. 2015-07-21 17:40:42 -07:00
Steven Smith
b22cd66d4f General cleanup, fixes, and re-versioning. 2015-07-20 11:13:18 -07:00
Steven Smith
f176be257b Add authentication proxy support. 2015-07-11 12:53:25 -07:00
Steven Smith
f4b62989a6 Fix ServerCombatPacket 2015-01-02 13:59:59 -08:00
Steven Smith
61360596bc Minor improvement to Test example. 2015-01-02 11:00:59 -08:00
Steven Smith
e5d5ec46cd Add methods to get block ids and data values from ShortArray3d. 2014-10-10 16:42:07 -07:00
Steven Smith
d4d8db1f0c 14w29b 2014-07-16 12:46:41 -07:00
Steveice10
91d8f0f57c Move authentication code to MCAuthLib 2014-03-30 10:48:44 -07:00
Steveice10
0f11929962 14w11b 2014-03-22 12:11:55 -07:00
Steveice10
3bff6611bd Refactored ch.spacebase to org.spacehq, reformatted code and line endings. 2014-03-01 16:47:32 -08:00
Steveice10
d7a5ec25c6 Moved test out of source folder to example folder 2014-01-30 20:22:03 -08:00