RednedEpic
5b4ba5b8d0
Merge branch 'feature/1.18' into feature/codec-refactor
2021-11-13 20:10:44 -06:00
RednedEpic
1188c1486f
Replace reflection usage with a supplier
2021-11-13 19:59:20 -06:00
RednedEpic
955986da96
More renames
2021-11-13 17:14:13 -06:00
RednedEpic
127f253a82
Remove test code
2021-11-13 16:47:45 -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
ec983f1447
Remove final for some packet methods
2021-11-13 16:41:57 -06:00
RednedEpic
816c0db6d7
Fix javadoc
2021-11-13 14:55:06 -06:00
RednedEpic
b1c85550f6
Update incoming & outgoing naming to serverbound & clientbound
...
Also determine which map to pull the packet from based on whether we're working with a client or server.
2021-11-13 14:53:46 -06:00
Camotoy
b3fb245b5b
Merge branch 'feature/1.18' of https://github.com/Steveice10/MCProtocolLib into feature/1.18
2021-11-13 15:29:23 -05:00
RednedEpic
c18fa85120
Remove duplicate registration
2021-11-13 13:57:21 -06:00
RednedEpic
c5032fb425
Update to new packetlib changes
2021-11-13 13:52:39 -06:00
RednedEpic
3fdf9ea1d5
Allow for registering with packet definition directly
2021-11-13 12:41:51 -06:00
RednedEpic
30a14ca088
Aaaand am
2021-11-13 12:32:07 -06:00
RednedEpic
d89ca0581e
Remove pl too
2021-11-13 12:31:45 -06:00
RednedEpic
7488f8f702
Remove connector referece
2021-11-13 12:30:31 -06:00
RednedEpic
37e2fc7bb3
Add open collab repo and deploy on Jenkins
2021-11-13 12:28:19 -06:00
RednedEpic
459e5287cc
Update examples to reflect changes done
2021-11-13 12:15:43 -06:00
RednedEpic
6c0f107702
Don't bump version as we are still on snapshot
2021-11-13 12:10:31 -06:00
Camotoy
e65ddd5a16
Actually fix SetTitleText writing null components
2021-11-13 09:52:25 -05:00
RednedEpic
98d9d91ca4
Remove deprecations here and any reflection usage
...
Methods were less than a day old
2021-11-12 23:06:14 -06:00
Redned
e295601d7c
Replace reflection usage with packet factories
2021-11-12 22:59:08 -06:00
Camotoy
489979d2bc
Require packets to have a NetInput constructor
...
This permits packets to have final fields, and prevents setAccessible and no-args constructor requirements.
2021-11-12 23:04:14 -05:00
Camotoy
b72c86049c
Move EAT_FOOD animation type to SWING_OFFHAND
2021-11-12 20:59:24 -05:00
Camotoy
3f2042a7e2
Correct SetTitleText nullability
2021-11-12 20:57:47 -05:00
Camotoy
fbc71cb566
Sound in StopSoundPacket is Nullable as of 1.17.1
2021-11-12 19:23:07 -05:00
Camotoy
87c0953d27
Set all fields as final; use constructor with NetInput
...
This allows all fields to be final, and prevents a setAccessible used on a no-args constructor.
2021-11-12 17:38:33 -05: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
Camotoy
3e9c660e79
Use PacketLib 2.1-SNAPSHOT for now
2021-11-12 12:54:18 -05:00
Camotoy
2776c24e05
Merge in Geyser changes to master ( #38 )
...
* Use TCP_NODELAY and Epoll where possible
* Add KQueue and respect disableNativeEventLoop property
* Inject
* works?
* Make it pretty
* Don't create a TCP EventLoopGroup unless needed
* Add method for determining if we connected internally
* fix datagrams
* Support HAProxy probably
* Set a bunch of things as final
* Allow setting direct ByteBufs preferred
* Expose channel; don't do packets on another thread
* Don't set channel to null and do some more optimizing
* Remove custom thread factory
* Remove unused SocketChannelWrapper class
* Remove all local channel classes
* Allow for packets to be handled on a separate thread
Co-authored-by: creeper123123321 <7974274+creeper123123321@users.noreply.github.com>
2021-11-12 11:12:52 -05:00
David Choo
dff7c0544c
Add missing Generic Statistics ( #668 )
2021-11-11 14:19:08 -05:00
Camotoy
c2985e83ea
Update to Adventure 4.9.3
2021-10-31 14:56:02 -04:00
RK_01
ccfb1aa94d
Fix memory leak by closing De-/Inflater ( #36 )
2021-10-26 17:52:57 -04:00
Josh Moore
728e673fcf
Updated Lombok to fix broken compilation when using Java 16 ( #665 )
...
- As suggested by: https://stackoverflow.com/a/66981165/9665770
- in extension: https://github.com/projectlombok/lombok/issues/2681
2021-10-19 21:49:27 -04:00
Camotoy
f1ac2de294
Use identifiers for all Effect classes; don't use MagicValues
...
We can just use the ordinal plus or minus one to determine what we're looking for.
2021-10-11 20:55:22 -04:00
Extollite
72ba6f58af
Fix project formatting style ( #663 )
2021-10-11 09:51:41 -04:00
Camotoy
e7979c45b6
Update Adventure version
2021-10-07 09:45:31 -04:00
Camotoy
a0ce555787
Use Mojang mapped name for UnexpectedEncryptionException
2021-10-07 09:44:34 -04:00
Camotoy
d00d4f4dba
Throw specific error when encryption could not be initialized
2021-10-07 09:43:08 -04:00
Camotoy
f750ba1537
Add Discord link
2021-10-04 20:43:15 -04:00
Camotoy
fcb508a414
Add Discord link
2021-10-04 20:41:27 -04:00
Steven Smith
6472a45e95
Merge pull request #657 from GeyserMC/feature/1.17.1
2021-09-23 01:46:56 -07:00
Camotoy
55e13e588a
Remove ServerSetCompressionPacket
...
This packet isn't used anymore.
2021-09-22 19:42:41 -04:00
Steven Smith
d9be754f05
Merge pull request #656 from jdonkervliet/master
2021-09-21 13:02:23 -07:00
Jesse Donkervliet
f287b501b3
fix: fixes two incorrect (swapped) packet IDs
2021-09-21 20:40:31 +02:00
Steveice10
270261ba2d
Update to latest MCAuthLib commit.
2021-09-06 15:05:31 -07:00
Steveice10
e09374ad9f
Update adventure and add legacy hover event serializer to default serializer.
2021-08-23 11:23:35 -07:00
Steveice10
133ecd07af
Bump version to 1.17.1-2-SNAPSHOT.
2021-08-22 18:12:30 -07:00
Steveice10
ee7c6195d8
Update to MCAuthLib 1.4 and bump version to 1.17.1-1.
...
MCAuthLib 1.4 includes a fix for a username-based attack on server-side authentication. Thanks to @Ry0taK for reporting.
2021-08-22 18:06:33 -07:00
Steven Smith
4a6aaa6213
Merge pull request #643 from GeyserMC/feature/1.17.1
2021-08-16 11:39:40 -07:00