Commit graph

1239 commits

Author SHA1 Message Date
Camotoy
1125e22038 Fix setting same ID block in singleton palette 2021-11-24 12:28:58 -05:00
Camotoy
a61bcb97f7 Use a constructor parameter to determine clientsideness in packet encoder 2021-11-24 11:21:14 -05:00
Camotoy
7eb2748a03 Update to 1.18-pre8 2021-11-24 10:47:15 -05:00
Camotoy
b71a7e2fa8
Update to 1.18-pre7 2021-11-23 13:34:21 -05:00
Camotoy
2ab91cf50a
Update to 1.18-pre6 2021-11-23 11:21:37 -05:00
Camotoy
efa4019a3d
Move attributes away from MagicValues and allow custom attributes 2021-11-23 10:54:59 -05:00
Camotoy
0662fb715f
Fix optional int metadata reading/writing 2021-11-20 15:20:47 -05:00
RednedEpic
4ded30ee86 Bump to pre5 2021-11-20 13:19:25 -06:00
RednedEpic
64ae35628e Improve entity metadata system & fix chunk test 2021-11-20 13:13:46 -06:00
Camotoy
a22d016a8e
Implement proper biome palette reading 2021-11-19 18:59:27 -05:00
Camotoy
a4267d0fe8
Update to 1.18-pre4 2021-11-18 16:08:59 -05:00
Camotoy
b8e980163c
Add equals and hashcode checks that include value 2021-11-18 11:16:53 -05:00
Camotoy
62492c961a
Entity metadata refactor; remove some MagicValues usages 2021-11-15 14:51:03 -05:00
Camotoy
2a8d18a3f8
Add an option to read from enum 2021-11-15 14:38:17 -05:00
Camotoy
155a3eb8f0
Update sound enum 2021-11-14 21:02:23 -05:00
Camotoy
ff76494a65
Properly implement block entity IDs and add tests 2021-11-14 12:05:39 -05:00
RednedEpic
8b7386a46a Never mind, this is not referenced directly but still is used 2021-11-13 23:16:57 -06:00
RednedEpic
b18835d2f3 Remove unused ChunkSection class 2021-11-13 23:13:50 -06:00
RednedEpic
a9e24e7cce Merge remote-tracking branch 'origin/feature/1.18-protocol-changes' into feature/1.18 2021-11-13 23:04:58 -06:00
RednedEpic
9705ac5c9b Merge branch 'feature/codec-refactor' into feature/1.18 2021-11-13 22:51:04 -06:00
Camotoy
d527164d4c
Initial update to 1.18 protocol 2021-11-13 23:48:38 -05:00
RednedEpic
78b4763b86 Rename ClientboundLevelChunkPacket to ClientboundLevelChunkWithLightPacket & other minor tweaks 2021-11-13 22:41:28 -06:00
RednedEpic
747d5f5655 Fix wrong rename 2021-11-13 20:44:14 -06:00
RednedEpic
44c235c86a Update variable name to chunkSection 2021-11-13 20:28:08 -06:00
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